int test(void)

{

asm __volatile__(".word 0x144f0000");

asm __volatile__("b 0x13c0000");

asm __volatile__(".word 0xd503201f");

asm __volatile__("nop");

asm __volatile__(".word 0xd65f03c0");

asm __volatile__("ret");

}

これをaarch64-none-elf-gcc test.c -c -o test.oして得られたものをaarch64-none-elf-objdump -d test.oすると(続く)

Reply to this note

Please Login to reply.

Discussion

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:~$

…なぜなのか