aa@framboise:~$ aarch64-none-elf-objdump -d test.o

test.o: file format elf64-littleaarch64

Disassembly of section .text:

0000000000000000 :

0: 144f0000 .word 0x144f0000

4: 144f0000 b 13c0004

8: d503201f .word 0xd503201f

c: d503201f nop

10: d65f03c0 .word 0xd65f03c0

14: d65f03c0 ret

18: d503201f nop

1c: d65f03c0 ret

uaa@framboise:~$

…なぜなのか

Reply to this note

Please Login to reply.

Discussion

(.wordで記述したものを命令として解釈せず、.wordのまま出てきてしまう)

d65f03c0 retということは、little-endianなので c0 03 5f d6と書けばいいのかな