1#source: gotop32.s 2#as: --32 -K PIC 3#ld: -shared -melf32_sparc 4#readelf: -WSsrl 5#target: sparc*-*-* 6 7There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: 8 9Section Headers: 10 +\[Nr\] Name +Type +Addr +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+12000 0+2000 0+70 08 +WA +3 +0 +4 18 +\[[ 0-9]+\] .got +PROGBITS +0+12070 0+2070 0+8 04 +WA +0 +0 +4 19 +\[[ 0-9]+\] .data +PROGBITS +0+13000 0+3000 0+8 00 +WA +0 +0 4096 20 +\[[ 0-9]+\] .shstrtab +.* 21 +\[[ 0-9]+\] .symtab +.* 22 +\[[ 0-9]+\] .strtab +.* 23#... 24 25Elf file type is DYN \(Shared object file\) 26Entry point 0x1000 27There are [0-9]+ program headers, starting at offset [0-9]+ 28 29Program Headers: 30 +Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align 31 +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000 32 +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+1008 0x0+1008 RW +0x10000 33 +DYNAMIC +0x0+2000 0x0+12000 0x0+12000 0x0+70 0x0+70 RW +0x4 34#... 35 36Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: 37 Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend 38[0-9a-f ]+R_SPARC_GLOB_DAT +0+13000 +sym \+ 0 39 40Symbol table '\.dynsym' contains [0-9]+ entries: 41 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 42.* NOTYPE +LOCAL +DEFAULT +UND * 43.* SECTION +LOCAL +DEFAULT +5 * 44.* SECTION +LOCAL +DEFAULT +7 * 45.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start 46.* FUNC +GLOBAL +DEFAULT +5 foo 47.* NOTYPE +GLOBAL +DEFAULT +8 _edata 48.* NOTYPE +GLOBAL +DEFAULT +8 _end 49.* NOTYPE +GLOBAL +DEFAULT +8 sym 50 51Symbol table '\.symtab' contains [0-9]+ entries: 52 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 53.* NOTYPE +LOCAL +DEFAULT +UND * 54.* SECTION +LOCAL +DEFAULT +1 * 55.* SECTION +LOCAL +DEFAULT +2 * 56.* SECTION +LOCAL +DEFAULT +3 * 57.* SECTION +LOCAL +DEFAULT +4 * 58.* SECTION +LOCAL +DEFAULT +5 * 59.* SECTION +LOCAL +DEFAULT +6 * 60.* SECTION +LOCAL +DEFAULT +7 * 61.* SECTION +LOCAL +DEFAULT +8 * 62.* FILE +LOCAL +DEFAULT +ABS .* 63.* NOTYPE +LOCAL +DEFAULT +8 local_sym 64.* FILE +LOCAL +DEFAULT +ABS .* 65.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC 66.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ 67.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ 68.* NOTYPE +GLOBAL +DEFAULT +8 __bss_start 69.* FUNC +GLOBAL +DEFAULT +5 foo 70.* NOTYPE +GLOBAL +DEFAULT +8 _edata 71.* NOTYPE +GLOBAL +DEFAULT +8 _end 72.* NOTYPE +GLOBAL +DEFAULT +8 sym 73 74