1 #source: greg-4.s 2 #source: greg-4.s 3 #source: local1.s 4 #source: local2.s 5 #source: ext1.s 6 #source: start.s 7 #ld: -m elf64mmix 8 #readelf: -Ssx1 -x2 9 10 # Like local1, but ext1 is here a constant, not a global register and two 11 # local-register checks. 12 13 There are 6 section headers, starting at offset .*: 14 15 Section Headers: 16 +\[Nr\] Name +Type +Address +Offset 17 +Size +EntSize +Flags +Link +Info +Align 18 +\[ 0\] +NULL +0+ +0+ 19 +0+ +0+ +0 +0 +0 20 +\[ 1\] \.text +PROGBITS +0+ +0+78 21 +0+c +0+ +AX +0 +0 +4 22 +\[ 2\] \.MMIX\.reg_content PROGBITS +0+7e8 +0+84 23 +0+10 +0+ +W +0 +0 +1 24 +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ 25 +0+34 +0+ +0 +0 +1 26 +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ 27 +[0-9a-f]+ +0+18 +5 +[0-9] +8 28 +\[ 5\] \.strtab +STRTAB +0+ +[0-9a-f]+ 29 +[0-9a-f]+ +0+ +0 +0 +1 30 Key to Flags: 31 #... 32 33 Symbol table '\.symtab' contains [0-9]+ entries: 34 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 35 .* 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND 36 .* 0+ +0 +SECTION +LOCAL +DEFAULT +1 37 .* 0+7e8 +0 +SECTION +LOCAL +DEFAULT +2 38 .* 0+ +0 +FILE +LOCAL +DEFAULT +ABS .* 39 .* 0+fd +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym 40 .* 0+ +0 +FILE +LOCAL +DEFAULT +ABS .* 41 .* 0+fe +0 +NOTYPE +LOCAL +DEFAULT +PRC\[0xff00\] lsym 42 .* 0+fc +0 +NOTYPE +GLOBAL +DEFAULT +ABS ext1 43 .* 0+8 +0 +NOTYPE +GLOBAL +DEFAULT +1 _start 44 #... 45 46 Hex dump of section '\.text': 47 0x0+ fd030201 fd020202 e3fd0001 .* 48 49 Hex dump of section '\.MMIX\.reg_contents': 50 0x0+7e8 00000000 0000004e 00000000 0000004e .* 51