1 #source: tlsdesc.s 2 #source: tlspic2.s 3 #as: --64 4 #ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info 5 #readelf: -WSsrld 6 #target: x86_64-*-nacl* 7 8 There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: 9 10 Section Headers: 11 +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al 12 +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 13 +\[[ 0-9]+\] .plt +PROGBITS +0+ [0-9a-f]+ +0+80 +40 +AX +0 +0 +32 14 +\[[ 0-9]+\] .text +PROGBITS +0+1000 [0-9a-f]+ +0+153 00 +AX +0 +0 4096 15 +\[[ 0-9]+\] .hash +.* 16 +\[[ 0-9]+\] .dynsym +.* 17 +\[[ 0-9]+\] .dynstr +.* 18 +\[[ 0-9]+\] .rela.dyn +.* 19 +\[[ 0-9]+\] .rela.plt +.* 20 +\[[ 0-9]+\] .tdata +PROGBITS +0+10010488 [0-9a-f]+ +0+60 00 WAT +0 +0 +1 21 +\[[ 0-9]+\] .tbss +NOBITS +0+100104e8 [0-9a-f]+ 0+20 00 WAT +0 +0 +1 22 +\[[ 0-9]+\] .dynamic +DYNAMIC +0+100104e8 [0-9a-f]+ 0+150 10 +WA +5 +0 +8 23 +\[[ 0-9]+\] .got +PROGBITS +0+10010638 [0-9a-f]+ 0+48 08 +WA +0 +0 +8 24 +\[[ 0-9]+\] .got.plt +PROGBITS +0+10010680 [0-9a-f]+ 0+68 08 +WA +0 +0 +8 25 +\[[ 0-9]+\] .shstrtab +.* 26 +\[[ 0-9]+\] .symtab +.* 27 +\[[ 0-9]+\] .strtab +.* 28 Key to Flags: 29 .* 30 .* 31 .* 32 33 Elf file type is DYN \(Shared object file\) 34 Entry point 0x1000 35 There are [0-9]+ program headers, starting at offset [0-9]+ 36 37 Program Headers: 38 +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align 39 +LOAD +0x[0-9a-f]+ 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000 40 +LOAD +0x[0-9a-f]+ 0x0+10000000 0x0+10000000 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x10000 41 +LOAD +0x[0-9a-f]+ 0x0+10010488 0x0+10010488 0x0+260 0x0+260 RW +0x10000 42 +DYNAMIC +0x[0-9a-f]+ 0x0+100104e8 0x0+100104e8 0x0+150 0x0+150 RW +0x8 43 +TLS +0x[0-9a-f]+ 0x0+10010488 0x0+10010488 0x0+60 0x0+80 R +0x1 44 45 Section to Segment mapping: 46 +Segment Sections... 47 +00 +.plt .text * 48 +01 +.hash .dynsym .dynstr .rela.dyn .rela.plt * 49 +02 +.tdata .dynamic .got .got.plt * 50 +03 +.dynamic * 51 +04 +.tdata .tbss * 52 53 Dynamic section at offset 0x[0-9a-f]+ contains 16 entries: 54 +Tag +Type +Name/Value 55 0x[0-9a-f]+ +\(HASH\).* 56 0x[0-9a-f]+ +\(STRTAB\).* 57 0x[0-9a-f]+ +\(SYMTAB\).* 58 0x[0-9a-f]+ +\(STRSZ\).* 59 0x[0-9a-f]+ +\(SYMENT\).* 60 0x[0-9a-f]+ +\(PLTGOT\).* 61 0x[0-9a-f]+ +\(PLTRELSZ\).* 62 0x[0-9a-f]+ +\(PLTREL\).* 63 0x[0-9a-f]+ +\(JMPREL\).* 64 0x[0-9a-f]+ +\(TLSDESC_PLT\) +0x40 65 0x[0-9a-f]+ +\(TLSDESC_GOT\) +0x10010678 66 0x[0-9a-f]+ +\(RELA\).* 67 0x[0-9a-f]+ +\(RELASZ\).* 68 0x[0-9a-f]+ +\(RELAENT\).* 69 0x[0-9a-f]+ +\(FLAGS\).* 70 0x[0-9a-f]+ +\(NULL\).* 71 72 Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries: 73 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend 74 0+10010638 +[0-9a-f]+ R_X86_64_TPOFF64 +24 75 0+10010640 +[0-9a-f]+ R_X86_64_TPOFF64 +30 76 0+10010648 +[0-9a-f]+ R_X86_64_TPOFF64 +64 77 0+10010658 +[0-9a-f]+ R_X86_64_TPOFF64 +50 78 0+10010660 +[0-9a-f]+ R_X86_64_TPOFF64 +70 79 0+10010670 +[0-9a-f]+ R_X86_64_TPOFF64 +44 80 0+10010650 +[0-9a-f]+ R_X86_64_TPOFF64 +0+10 sg5 \+ 0 81 0+10010668 +[0-9a-f]+ R_X86_64_TPOFF64 +0+4 sg2 \+ 0 82 83 Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 5 entries: 84 +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend 85 0+100106c8 +[0-9a-f]+ R_X86_64_TLSDESC +0+ sg1 \+ 0 86 0+10010698 +[0-9a-f]+ R_X86_64_TLSDESC +20 87 0+100106d8 +[0-9a-f]+ R_X86_64_TLSDESC +40 88 0+100106a8 +[0-9a-f]+ R_X86_64_TLSDESC +60 89 0+100106b8 +[0-9a-f]+ R_X86_64_TLSDESC +0 90 91 Symbol table '\.dynsym' contains [0-9]+ entries: 92 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 93 +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * 94 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * 95 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * 96 +[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8 97 +[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3 98 +[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4 99 +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 100 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 101 +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +2 fn1 102 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start 103 +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 104 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 105 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 106 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata 107 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end 108 109 Symbol table '\.symtab' contains [0-9]+ entries: 110 +Num: +Value +Size +Type +Bind +Vis +Ndx +Name 111 +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * 112 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 * 113 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * 114 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 * 115 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 * 116 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 * 117 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 * 118 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 * 119 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * 120 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 * 121 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 * 122 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 * 123 +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 * 124 .* FILE +LOCAL +DEFAULT +ABS .* 125 +[0-9]+: 0+20 +0 +TLS +LOCAL +DEFAULT +8 sl1 126 +[0-9]+: 0+24 +0 +TLS +LOCAL +DEFAULT +8 sl2 127 +[0-9]+: 0+28 +0 +TLS +LOCAL +DEFAULT +8 sl3 128 +[0-9]+: 0+2c +0 +TLS +LOCAL +DEFAULT +8 sl4 129 +[0-9]+: 0+30 +0 +TLS +LOCAL +DEFAULT +8 sl5 130 +[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +8 sl6 131 +[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +8 sl7 132 +[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +8 sl8 133 +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +9 sH1 134 +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +8 sh3 135 +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +9 sH2 136 +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +9 sH7 137 +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +8 sh7 138 +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +8 sh8 139 +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +9 sH4 140 +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +8 sh4 141 +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +9 sH3 142 +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +8 sh5 143 +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +9 sH5 144 +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +9 sH6 145 +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +9 sH8 146 +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +8 sh1 147 +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +8 sh2 148 +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +8 sh6 149 .* FILE +LOCAL +DEFAULT +ABS .* 150 +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +8 _TLS_MODULE_BASE_ 151 +[0-9]+: 0+100104e8 +0 +OBJECT +LOCAL +DEFAULT +10 _DYNAMIC 152 +[0-9]+: 0+10010680 +0 +OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_ 153 +[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8 154 +[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3 155 +[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4 156 +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 157 +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 158 +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +2 fn1 159 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 __bss_start 160 +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 161 +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 162 +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 163 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _edata 164 +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +12 _end 165