Home | History | Annotate | Download | only in ld-x86-64
      1 #source: tlspic1.s
      2 #source: tlspic2.s
      3 #as: --64
      4 #ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info
      5 #readelf: -WSsrl
      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 +.*
     14  +\[[ 0-9]+\] .text +PROGBITS +0+1000 [0-9a-f]+ 0+31a 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+100104e8 [0-9a-f]+ 0+60 00 WAT +0 +0 +1
     21  +\[[ 0-9]+\] .tbss +NOBITS +0+10010548 [0-9a-f]+ 0+20 00 WAT +0 +0 +1
     22  +\[[ 0-9]+\] .dynamic +DYNAMIC +0+10010548 [0-9a-f]+ 0+130 10 +WA +5 +0 +8
     23  +\[[ 0-9]+\] .got +PROGBITS +0+10010678 [0-9a-f]+ 0+90 08 +WA +0 +0 +8
     24  +\[[ 0-9]+\] .got.plt +PROGBITS +0+10010708 [0-9a-f]+ 0+20 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 +0x0+10000 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000
     40  +LOAD +0x0+ 0x0+10000000 0x0+10000000 0x0+4e8 0x0+4e8 R +0x10000
     41  +LOAD +0x0+4e8 0x0+100104e8 0x0+100104e8 0x0+240 0x0+240 RW +0x10000
     42  +DYNAMIC +0x0+548 0x0+10010548 0x0+10010548 0x0+130 0x0+130 RW +0x8
     43  +TLS +0x0+4e8 0x0+100104e8 0x0+100104e8 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 Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
     54  +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
     55 [0-9a-f ]+R_X86_64_DTPMOD64 +0
     56 [0-9a-f ]+R_X86_64_TPOFF64 +24
     57 [0-9a-f ]+R_X86_64_TPOFF64 +30
     58 [0-9a-f ]+R_X86_64_DTPMOD64 +0
     59 [0-9a-f ]+R_X86_64_DTPMOD64 +0
     60 [0-9a-f ]+R_X86_64_TPOFF64 +64
     61 [0-9a-f ]+R_X86_64_TPOFF64 +50
     62 [0-9a-f ]+R_X86_64_TPOFF64 +70
     63 [0-9a-f ]+R_X86_64_DTPMOD64 +0
     64 [0-9a-f ]+R_X86_64_TPOFF64 +44
     65 [0-9a-f ]+R_X86_64_TPOFF64 +0+10 sg5 \+ 0
     66 [0-9a-f ]+R_X86_64_DTPMOD64 +0+ sg1 \+ 0
     67 [0-9a-f ]+R_X86_64_DTPOFF64 +0+ sg1 \+ 0
     68 [0-9a-f ]+R_X86_64_TPOFF64 +0+4 sg2 \+ 0
     69 
     70 Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
     71  +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
     72 [0-9a-f ]+R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0
     73 
     74 Symbol table '\.dynsym' contains [0-9]+ entries:
     75  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
     76 .* NOTYPE +LOCAL +DEFAULT +UND *
     77 .* SECTION +LOCAL +DEFAULT +2 *
     78 .* SECTION +LOCAL +DEFAULT +8 *
     79 .* TLS +GLOBAL +DEFAULT +8 sg8
     80 .* TLS +GLOBAL +DEFAULT +8 sg3
     81 .* TLS +GLOBAL +DEFAULT +8 sg4
     82 .* TLS +GLOBAL +DEFAULT +8 sg5
     83 .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
     84 .* TLS +GLOBAL +DEFAULT +8 sg1
     85 .* FUNC +GLOBAL +DEFAULT +2 fn1
     86 .* NOTYPE +GLOBAL +DEFAULT +12 __bss_start
     87 .* TLS +GLOBAL +DEFAULT +8 sg2
     88 .* TLS +GLOBAL +DEFAULT +8 sg6
     89 .* TLS +GLOBAL +DEFAULT +8 sg7
     90 .* NOTYPE +GLOBAL +DEFAULT +12 _edata
     91 .* NOTYPE +GLOBAL +DEFAULT +12 _end
     92 
     93 Symbol table '\.symtab' contains [0-9]+ entries:
     94  +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
     95 .* NOTYPE +LOCAL +DEFAULT +UND *
     96 .* SECTION +LOCAL +DEFAULT +1 *
     97 .* SECTION +LOCAL +DEFAULT +2 *
     98 .* SECTION +LOCAL +DEFAULT +3 *
     99 .* SECTION +LOCAL +DEFAULT +4 *
    100 .* SECTION +LOCAL +DEFAULT +5 *
    101 .* SECTION +LOCAL +DEFAULT +6 *
    102 .* SECTION +LOCAL +DEFAULT +7 *
    103 .* SECTION +LOCAL +DEFAULT +8 *
    104 .* SECTION +LOCAL +DEFAULT +9 *
    105 .* SECTION +LOCAL +DEFAULT +10 *
    106 .* SECTION +LOCAL +DEFAULT +11 *
    107 .* SECTION +LOCAL +DEFAULT +12 *
    108 .* FILE +LOCAL +DEFAULT +ABS .*
    109 .* TLS +LOCAL +DEFAULT +8 sl1
    110 .* TLS +LOCAL +DEFAULT +8 sl2
    111 .* TLS +LOCAL +DEFAULT +8 sl3
    112 .* TLS +LOCAL +DEFAULT +8 sl4
    113 .* TLS +LOCAL +DEFAULT +8 sl5
    114 .* TLS +LOCAL +DEFAULT +8 sl6
    115 .* TLS +LOCAL +DEFAULT +8 sl7
    116 .* TLS +LOCAL +DEFAULT +8 sl8
    117 .* TLS +LOCAL +DEFAULT +9 sH1
    118 .* TLS +LOCAL +DEFAULT +8 sh3
    119 .* TLS +LOCAL +DEFAULT +9 sH2
    120 .* TLS +LOCAL +DEFAULT +9 sH7
    121 .* TLS +LOCAL +DEFAULT +8 sh7
    122 .* TLS +LOCAL +DEFAULT +8 sh8
    123 .* TLS +LOCAL +DEFAULT +9 sH4
    124 .* TLS +LOCAL +DEFAULT +8 sh4
    125 .* TLS +LOCAL +DEFAULT +9 sH3
    126 .* TLS +LOCAL +DEFAULT +8 sh5
    127 .* TLS +LOCAL +DEFAULT +9 sH5
    128 .* TLS +LOCAL +DEFAULT +9 sH6
    129 .* TLS +LOCAL +DEFAULT +9 sH8
    130 .* TLS +LOCAL +DEFAULT +8 sh1
    131 .* TLS +LOCAL +DEFAULT +8 sh2
    132 .* TLS +LOCAL +DEFAULT +8 sh6
    133 .* FILE +LOCAL +DEFAULT +ABS .*
    134 .* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC
    135 .* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_
    136 .* TLS +GLOBAL +DEFAULT +8 sg8
    137 .* TLS +GLOBAL +DEFAULT +8 sg3
    138 .* TLS +GLOBAL +DEFAULT +8 sg4
    139 .* TLS +GLOBAL +DEFAULT +8 sg5
    140 .* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr
    141 .* TLS +GLOBAL +DEFAULT +8 sg1
    142 .* FUNC +GLOBAL +DEFAULT +2 fn1
    143 .* NOTYPE +GLOBAL +DEFAULT +12 __bss_start
    144 .* TLS +GLOBAL +DEFAULT +8 sg2
    145 .* TLS +GLOBAL +DEFAULT +8 sg6
    146 .* TLS +GLOBAL +DEFAULT +8 sg7
    147 .* NOTYPE +GLOBAL +DEFAULT +12 _edata
    148 .* NOTYPE +GLOBAL +DEFAULT +12 _end
    149