1#source: tlssunpic32.s 2#source: tlspic.s 3#as: --32 -K PIC 4#ld: -shared -melf32_sparc 5#readelf: -WSsrl 6#target: sparc*-*-* 7 8There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: 9 10Section Headers: 11 +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al 12 +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0 13 +\[[ 0-9]+\] .hash +.* 14 +\[[ 0-9]+\] .dynsym +.* 15 +\[[ 0-9]+\] .dynstr +.* 16 +\[[ 0-9]+\] .rela.dyn +.* 17 +\[[ 0-9]+\] .rela.plt +.* 18 +\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+1000 0+ +AX +0 +0 4096 19 +\[[ 0-9]+\] .tdata +PROGBITS +0+12000 0+2000 0+60 0+ WAT +0 +0 +4 20 +\[[ 0-9]+\] .tbss +NOBITS +0+12060 0+2060 0+20 0+ WAT +0 +0 +4 21 +\[[ 0-9]+\] .dynamic +DYNAMIC +0+12060 0+2060 0+98 08 +WA +3 +0 +4 22 +\[[ 0-9]+\] .got +PROGBITS +0+120f8 0+20f8 0+4c 04 +WA +0 +0 +4 23 +\[[ 0-9]+\] .plt +.* 24 +\[[ 0-9]+\] .shstrtab +.* 25 +\[[ 0-9]+\] .symtab +.* 26 +\[[ 0-9]+\] .strtab +.* 27#... 28 29Elf file type is DYN \(Shared object file\) 30Entry point 0x1000 31There are [0-9]+ program headers, starting at offset [0-9]+ 32 33Program Headers: 34 +Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align 35 +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000 36 +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+184 0x0+184 RWE 0x10000 37 +DYNAMIC +0x0+2060 0x0+12060 0x0+12060 0x0+98 0x0+98 RW +0x4 38 +TLS +0x0+2000 0x0+12000 0x0+12000 0x0+60 0x0+80 R +0x4 39#... 40 41Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: 42 Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend 43[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0 44[0-9a-f ]+R_SPARC_TLS_TPOFF32 +24 45[0-9a-f ]+R_SPARC_TLS_TPOFF32 +30 46[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0 47[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0 48[0-9a-f ]+R_SPARC_TLS_TPOFF32 +64 49[0-9a-f ]+R_SPARC_TLS_TPOFF32 +50 50[0-9a-f ]+R_SPARC_TLS_TPOFF32 +70 51[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0 52[0-9a-f ]+R_SPARC_TLS_TPOFF32 +44 53[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+10 +sg5 \+ 0 54[0-9a-f ]+R_SPARC_TLS_DTPMOD32 +0+ +sg1 \+ 0 55[0-9a-f ]+R_SPARC_TLS_DTPOFF32 +0+ +sg1 \+ 0 56[0-9a-f ]+R_SPARC_TLS_TPOFF32 +0+4 +sg2 \+ 0 57 58Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries: 59 Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend 60[0-9a-f ]+R_SPARC_JMP_SLOT +0+ +__tls_get_addr \+ 0 61 62Symbol table '\.dynsym' contains [0-9]+ entries: 63 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 64.* NOTYPE +LOCAL +DEFAULT +UND * 65.* SECTION +LOCAL +DEFAULT +6 * 66.* SECTION +LOCAL +DEFAULT +7 * 67.* SECTION +LOCAL +DEFAULT +10 * 68.* TLS +GLOBAL +DEFAULT +7 sg8 69.* TLS +GLOBAL +DEFAULT +7 sg3 70.* TLS +GLOBAL +DEFAULT +7 sg4 71.* TLS +GLOBAL +DEFAULT +7 sg5 72.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr 73.* TLS +GLOBAL +DEFAULT +7 sg1 74.* FUNC +GLOBAL +DEFAULT +6 fn1 75.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start 76.* TLS +GLOBAL +DEFAULT +7 sg2 77.* TLS +GLOBAL +DEFAULT +7 sg6 78.* TLS +GLOBAL +DEFAULT +7 sg7 79.* NOTYPE +GLOBAL +DEFAULT +11 _edata 80.* NOTYPE +GLOBAL +DEFAULT +11 _end 81 82Symbol table '\.symtab' contains [0-9]+ entries: 83 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 84.* NOTYPE +LOCAL +DEFAULT +UND * 85.* SECTION +LOCAL +DEFAULT +1 * 86.* SECTION +LOCAL +DEFAULT +2 * 87.* SECTION +LOCAL +DEFAULT +3 * 88.* SECTION +LOCAL +DEFAULT +4 * 89.* SECTION +LOCAL +DEFAULT +5 * 90.* SECTION +LOCAL +DEFAULT +6 * 91.* SECTION +LOCAL +DEFAULT +7 * 92.* SECTION +LOCAL +DEFAULT +8 * 93.* SECTION +LOCAL +DEFAULT +9 * 94.* SECTION +LOCAL +DEFAULT +10 * 95.* SECTION +LOCAL +DEFAULT +11 * 96.* FILE +LOCAL +DEFAULT +ABS .* 97.* TLS +LOCAL +DEFAULT +7 sl1 98.* TLS +LOCAL +DEFAULT +7 sl2 99.* TLS +LOCAL +DEFAULT +7 sl3 100.* TLS +LOCAL +DEFAULT +7 sl4 101.* TLS +LOCAL +DEFAULT +7 sl5 102.* TLS +LOCAL +DEFAULT +7 sl6 103.* TLS +LOCAL +DEFAULT +7 sl7 104.* TLS +LOCAL +DEFAULT +7 sl8 105.* TLS +LOCAL +DEFAULT +8 sH1 106.* TLS +LOCAL +DEFAULT +7 sh3 107.* TLS +LOCAL +DEFAULT +8 sH2 108.* TLS +LOCAL +DEFAULT +8 sH7 109.* TLS +LOCAL +DEFAULT +7 sh7 110.* TLS +LOCAL +DEFAULT +7 sh8 111.* TLS +LOCAL +DEFAULT +8 sH4 112.* TLS +LOCAL +DEFAULT +7 sh4 113.* TLS +LOCAL +DEFAULT +8 sH3 114.* TLS +LOCAL +DEFAULT +7 sh5 115.* TLS +LOCAL +DEFAULT +8 sH5 116.* TLS +LOCAL +DEFAULT +8 sH6 117.* TLS +LOCAL +DEFAULT +8 sH8 118.* TLS +LOCAL +DEFAULT +7 sh1 119.* TLS +LOCAL +DEFAULT +7 sh2 120.* TLS +LOCAL +DEFAULT +7 sh6 121.* FILE +LOCAL +DEFAULT +ABS .* 122.* OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC 123.* OBJECT +LOCAL +DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_ 124.* OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ 125.* TLS +GLOBAL +DEFAULT +7 sg8 126.* TLS +GLOBAL +DEFAULT +7 sg3 127.* TLS +GLOBAL +DEFAULT +7 sg4 128.* TLS +GLOBAL +DEFAULT +7 sg5 129.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr 130.* TLS +GLOBAL +DEFAULT +7 sg1 131.* FUNC +GLOBAL +DEFAULT +6 fn1 132.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start 133.* TLS +GLOBAL +DEFAULT +7 sg2 134.* TLS +GLOBAL +DEFAULT +7 sg6 135.* TLS +GLOBAL +DEFAULT +7 sg7 136.* NOTYPE +GLOBAL +DEFAULT +11 _edata 137.* NOTYPE +GLOBAL +DEFAULT +11 _end 138