armasm --cpu Cortex-M3 -o temp.o ticket547.s fromelf --text -c -d -r temp.o --output ticket547.txt ======================================================================== ** ELF Header Information File Name: temp.o Machine class: ELFCLASS32 (32-bit) Data encoding: ELFDATA2LSB (Little endian) Header version: EV_CURRENT (Current version) Operating System ABI: none ABI Version: 0 File Type: ET_REL (Relocatable object) (1) Machine: EM_ARM (ARM) Entry offset (in SHF_ENTRYSECT section): 0x00000001 Flags: None (0x00000000) ARM ELF revision: 0 (SDT / legacy GNU / unspecified) Built with Component: ARM Compiler 5.06 update 7 (build 960) Tool: armasm [4d35fa] Header size: 52 bytes (0x34) Program header entry size: 0 bytes (0x0) Section header entry size: 40 bytes (0x28) Program header entries: 0 Section header entries: 9 Program header offset: 0 (0x00000000) Section header offset: 692 (0x000002b4) Section header string table index: 8 ======================================================================== ** Section #1 'code' (SHT_PROGBITS) [SHF_ALLOC + SHF_EXECINSTR + SHF_ENTRYSECT] Size : 34 bytes (alignment 4) Address: 0x00000000 $t code 0x00000000: df11 .. SVC #0x11 ; formerly SWI 0x00000002: 4802 .H LDR r0,[pc,#8] ; [label = 0xc] = 0 0x00000004: 4801 .H LDR r0,[pc,#4] ; [label = 0xc] = 0 0x00000006: 4801 .H LDR r0,[pc,#4] ; [label = 0xc] = 0 0x00000008: 4800 .H LDR r0,[pc,#0] ; [label = 0xc] = 0 0x0000000a: 4801 .H LDR r0,[pc,#4] ; [label2 = 0x10] = 0 $d 0x0000000c: 00000000 .... DCD 0 ; label 0x00000010: 00000000 .... DCD 0 ; label2 0x00000014: 00000000 .... DCD 0 0x00000018: 00000000 .... DCD 0 0x0000001c: 00000000 .... DCD 0 $t 0x00000020: de00 .. DCI 0xde00 ; ? Undefined ** Section #2 '.relcode' (SHT_REL) Size : 16 bytes (alignment 4) Symbol table #4 '.symtab' 2 relocations applied to section #1 'code' # Offset Relocation Type Wrt Symbol Defined in ======================================================================== 0 0x0000000c 2 R_ARM_ABS32 8 label #3 'data' 1 0x00000010 2 R_ARM_ABS32 9 label2 #3 'data' ** Section #3 'data' (SHT_NOBITS) [SHF_ALLOC + SHF_WRITE] Size : 8 bytes (alignment 4) Address: 0x00000000 ** Section #4 '.symtab' (SHT_SYMTAB) Size : 160 bytes (alignment 4) String table #5 '.strtab' Last local symbol no. 9 ** Section #5 '.strtab' (SHT_STRTAB) Size : 176 bytes ** Section #6 '.comment' (SHT_PROGBITS) Size : 116 bytes ** Section #7 '.ARM.attributes' (SHT_ARM_ATTRIBUTES) Size : 70 bytes ** Section #8 '.shstrtab' (SHT_STRTAB) Size : 66 bytes