Commit | Line | Data |
---|---|---|
739f7f82 DM |
1 | #source: gotop64.s |
2 | #as: --64 -K PIC | |
3 | #ld: -shared -melf64_sparc | |
4 | #readelf: -WSsrl | |
5 | #target: sparc*-*-* | |
6 | ||
7 | There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: | |
8 | ||
9 | Section Headers: | |
10 | +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al | |
11 | +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0 | |
12 | +\[[ 0-9]+\] .hash +.* | |
13 | +\[[ 0-9]+\] .dynsym +.* | |
14 | +\[[ 0-9]+\] .dynstr +.* | |
15 | +\[[ 0-9]+\] .rela.dyn +.* | |
16 | +\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+1000 0+ +AX +0 +0 4096 | |
17 | +\[[ 0-9]+\] .dynamic +DYNAMIC +0+102000 0+2000 0+e0 10 +WA +3 +0 +8 | |
18 | +\[[ 0-9]+\] .got +PROGBITS +0+1020e0 0+20e0 0+10 08 +WA +0 +0 +8 | |
9028d943 | 19 | +\[[ 0-9]+\] .data +PROGBITS +0+103000 0+3000 0+8 00 +WA +0 +0 4096 |
739f7f82 DM |
20 | +\[[ 0-9]+\] .symtab +.* |
21 | +\[[ 0-9]+\] .strtab +.* | |
dd905818 | 22 | +\[[ 0-9]+\] .shstrtab +.* |
739f7f82 DM |
23 | #... |
24 | ||
25 | Elf file type is DYN \(Shared object file\) | |
26 | Entry point 0x1000 | |
27 | There are [0-9]+ program headers, starting at offset [0-9]+ | |
28 | ||
29 | Program Headers: | |
30 | +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align | |
31 | +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x100000 | |
9028d943 | 32 | +LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+1008 0x0+1008 RW +0x100000 |
739f7f82 DM |
33 | +DYNAMIC +0x0+2000 0x0+102000 0x0+102000 0x0+e0 0x0+e0 RW +0x8 |
34 | #... | |
35 | ||
d3a49aa8 | 36 | Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: |
739f7f82 DM |
37 | +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend |
38 | [0-9a-f ]+R_SPARC_GLOB_DAT +0+103000 +sym \+ 0 | |
39 | ||
40 | Symbol table '\.dynsym' contains [0-9]+ entries: | |
f9272224 | 41 | +Num: +Value +Size +Type +Bind +Vis +Ndx +Name |
739f7f82 | 42 | .* NOTYPE +LOCAL +DEFAULT +UND * |
f9272224 AM |
43 | .* SECTION +LOCAL +DEFAULT +5 * |
44 | .* SECTION +LOCAL +DEFAULT +7 * | |
f9272224 | 45 | .* FUNC +GLOBAL +DEFAULT +5 foo |
f9272224 | 46 | .* NOTYPE +GLOBAL +DEFAULT +8 sym |
739f7f82 DM |
47 | |
48 | Symbol table '\.symtab' contains [0-9]+ entries: | |
f9272224 | 49 | +Num: +Value +Size +Type +Bind +Vis +Ndx +Name |
739f7f82 | 50 | .* NOTYPE +LOCAL +DEFAULT +UND * |
f9272224 AM |
51 | .* SECTION +LOCAL +DEFAULT +1 * |
52 | .* SECTION +LOCAL +DEFAULT +2 * | |
53 | .* SECTION +LOCAL +DEFAULT +3 * | |
54 | .* SECTION +LOCAL +DEFAULT +4 * | |
55 | .* SECTION +LOCAL +DEFAULT +5 * | |
56 | .* SECTION +LOCAL +DEFAULT +6 * | |
57 | .* SECTION +LOCAL +DEFAULT +7 * | |
58 | .* SECTION +LOCAL +DEFAULT +8 * | |
ffbc01cc | 59 | .* FILE +LOCAL +DEFAULT +ABS .* |
00c50991 | 60 | .* NOTYPE +LOCAL +DEFAULT +8 local_sym |
ffbc01cc | 61 | .* FILE +LOCAL +DEFAULT +ABS .* |
935bd1e0 L |
62 | .* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC |
63 | .* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ | |
64 | .* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ | |
f9272224 | 65 | .* FUNC +GLOBAL +DEFAULT +5 foo |
f9272224 | 66 | .* NOTYPE +GLOBAL +DEFAULT +8 sym |
739f7f82 | 67 |