Commit | Line | Data |
---|---|---|
3c3bdf30 NC |
1 | #source: greg-4.s |
2 | #source: greg-4.s | |
3 | #source: local1.s | |
4 | #source: regext1.s | |
5 | #source: start.s | |
6 | #ld: -m elf64mmix | |
8d7146ba | 7 | #readelf: -Ssx1 -x2 |
3c3bdf30 NC |
8 | |
9 | # We check that the externally visible symbol ext1 is a local register | |
10 | # (different meaning of "local" than for symbol), which can be seen as | |
11 | # somewhat twisted. | |
12 | ||
8d7146ba | 13 | There are 6 section headers, starting at offset 0xc8: |
3c3bdf30 NC |
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 | |
8d7146ba | 20 | \[ 1\] \.text PROGBITS 0+ 0+78 |
3c3bdf30 | 21 | 0+8 0+ AX 0 0 4 |
8d7146ba | 22 | \[ 2\] \.MMIX\.reg_content PROGBITS 0+7e8 0+80 |
3c3bdf30 | 23 | 0+10 0+ W 0 0 1 |
8d7146ba L |
24 | \[ 3\] \.shstrtab STRTAB 0+ 0+90 |
25 | 0+34 0+ 0 0 1 | |
26 | \[ 4\] \.symtab SYMTAB 0+ 0+248 | |
f0b5bb34 AM |
27 | 0+108 0+18 5 5 8 |
28 | \[ 5\] \.strtab STRTAB 0+ 0+350 | |
3c3bdf30 NC |
29 | 0+32 0+ 0 0 1 |
30 | Key to Flags: | |
31 | W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\) | |
32 | I \(info\), L \(link order\), G \(group\), x \(unknown\) | |
33 | O \(extra OS processing required\) o \(OS specific\), p \(processor specific\) | |
34 | ||
f0b5bb34 | 35 | Symbol table '\.symtab' contains 11 entries: |
3c3bdf30 NC |
36 | Num: Value Size Type Bind Vis Ndx Name |
37 | 0: 0+ 0 NOTYPE LOCAL DEFAULT UND | |
38 | 1: 0+ 0 SECTION LOCAL DEFAULT 1 | |
8d7146ba | 39 | 2: 0+7e8 0 SECTION LOCAL DEFAULT 2 |
f0b5bb34 AM |
40 | 3: 0+fd 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym |
41 | 4: 0+fe 0 NOTYPE LOCAL DEFAULT PRC\[0xff00\] lsym | |
42 | 5: 0+fc 0 NOTYPE GLOBAL DEFAULT PRC\[0xff00\] ext1 | |
43 | 6: 0+4 0 NOTYPE GLOBAL DEFAULT 1 _start | |
f8548834 | 44 | #... |
3c3bdf30 NC |
45 | |
46 | Hex dump of section '\.text': | |
47 | 0x0+ fd030201 e3fd0001 .* | |
48 | ||
49 | Hex dump of section '\.MMIX\.reg_contents': | |
50 | 0x0+7e8 00000000 0000004e 00000000 0000004e .* |