[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARMulator (Re: psion5/geofox)



In message ``ARMulator (Re: psion5/geofox)''
	Tue Dec 14 02:49:58 JST 1999,
	you@nightbreak.org (Y. Takizawa) writes:

> しょーがないので unified bfd でやってみました(^^;).

ところで,ほとんどいきおい(?)で

--(ここから)--
$ uname -srm
NetBSD 1.4L i386
$ objdump -d vmlinux | head

vmlinux:     file format elf32-arm

Disassembly of section .text.init:

c0038000 <_stext>:
c0038000:       e3300000        teq     r0, #0
c0038004:       1a000044        bne     c003811c <vctble+0x38>
c0038008:       e351000a        cmp     r1, #10
c003800c:       aa000042        bge     c003811c <vctble+0x38>
$ file boot.bin
boot.bin: NetBSD/arm32 executable not stripped
$ objdump -d boot.bin | head

boot.bin:     file format a.out-arm-netbsd

Disassembly of section .text:

c0028000 <start>:
c0028000:       ea000003        b       c0028014 <La1>
c0028004:       c0028000        andgt   r8, r2, r0
c0028008:       c002ad08        andgt   sl, r2, r8, lsl #26
c002800c:       c002803c        andgt   r8, r2, ip, lsr r0
$ objcopy -O elf32-arm boot.bin boot.elf
$ file boot.elf
boot.elf: ELF 32-bit LSB executable, Advanced RISC Machines ARM, version 1, statically linked, not stripped
$ objdump -d boot.elf | head

boot.elf:     file format elf32-arm

Disassembly of section .text:

c0028000 <start>:
c0028000:       ea000003        b       c0028014 <La1>
c0028004:       c0028000        andgt   r8, r2, r0
c0028008:       c002ad08        andgt   sl, r2, r8, lsl #26
c002800c:       c002803c        andgt   r8, r2, ip, lsr r0
--(ここまで)--

みたいなことをする elf32-arm ぱっちなんてものを作っちゃたんですが
なんかの役に立ちますかね?(できそこないの可能性大)

# objcopy で ELF 化する必要があるかなーと思って作ったんだけど
# そんなことをしなくても raw binary にすれば動くのであった.

--
Y. Takizawa	(滝沢陽三)
you@nightbreak.org, takizawa@computer.org
``Don't feel as if the key to successful computing is only in your hands.''