| 1 | #source: tlsbin.s |
| 2 | #as: |
| 3 | #ld: -melf32xtensa |
| 4 | #readelf: -WSsrl |
| 5 | #target: xtensa*-*-linux* |
| 6 | |
| 7 | There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: |
| 8 | |
| 9 | Section Headers: |
| 10 | +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al |
| 11 | +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 |
| 12 | +\[[ 0-9]+\] .interp +.* |
| 13 | +\[[ 0-9]+\] .hash +.* |
| 14 | +\[[ 0-9]+\] .dynsym +.* |
| 15 | +\[[ 0-9]+\] .dynstr +.* |
| 16 | +\[[ 0-9]+\] .rela.dyn +.* |
| 17 | +\[[ 0-9]+\] .text +PROGBITS +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 +AX +0 +0 +4 |
| 18 | +\[[ 0-9]+\] .got.loc +PROGBITS +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 +A +0 +0 +4 |
| 19 | +\[[ 0-9]+\] .tdata +PROGBITS +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 +WAT +0 +0 +4 |
| 20 | +\[[ 0-9]+\] .dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4 |
| 21 | +\[[ 0-9]+\] .got +PROGBITS +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 +WA +0 +0 +4 |
| 22 | +\[[ 0-9]+\] .xtensa.info +NOTE +0+ .* |
| 23 | +\[[ 0-9]+\] .xt.lit +PROGBITS +0+ .* |
| 24 | +\[[ 0-9]+\] .xt.prop +PROGBITS +0+ .* |
| 25 | +\[[ 0-9]+\] .symtab +.* |
| 26 | +\[[ 0-9]+\] .strtab +.* |
| 27 | +\[[ 0-9]+\] .shstrtab +.* |
| 28 | Key to Flags: |
| 29 | #... |
| 30 | |
| 31 | Elf file type is EXEC \(Executable file\) |
| 32 | Entry point 0x[0-9a-f]+ |
| 33 | There are [0-9]+ program headers, starting at offset [0-9]+ |
| 34 | |
| 35 | Program Headers: |
| 36 | +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
| 37 | +PHDR.* |
| 38 | +INTERP.* |
| 39 | .*Requesting program interpreter.* |
| 40 | +LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x1000 |
| 41 | +LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x1000 |
| 42 | +DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x4 |
| 43 | +TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x4 |
| 44 | |
| 45 | Section to Segment mapping: |
| 46 | +Segment Sections... |
| 47 | +00 * |
| 48 | +01 +.interp * |
| 49 | +02 +.interp .hash .dynsym .dynstr .rela.dyn .text .got.loc * |
| 50 | +03 +.tdata .dynamic .got * |
| 51 | +04 +.dynamic * |
| 52 | +05 +.tdata * |
| 53 | |
| 54 | Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 3 entries: |
| 55 | +Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend |
| 56 | [0-9a-f]+ +[0-9a-f]+ R_XTENSA_TLS_TPOFF +0+ +sG1 \+ 0 |
| 57 | [0-9a-f]+ +[0-9a-f]+ R_XTENSA_TLS_TPOFF +0+ +sG2 \+ 0 |
| 58 | [0-9a-f]+ +[0-9a-f]+ R_XTENSA_TLS_TPOFF +0+ +sG2 \+ 0 |
| 59 | |
| 60 | Symbol table '\.dynsym' contains [0-9]+ entries: |
| 61 | +Num: +Value +Size +Type +Bind +Vis +Ndx +Name |
| 62 | +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * |
| 63 | +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 |
| 64 | +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start |
| 65 | +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 |
| 66 | +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata |
| 67 | +[0-9]+: 0+[0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end |
| 68 | |
| 69 | Symbol table '\.symtab' contains [0-9]+ entries: |
| 70 | +Num: +Value +Size +Type +Bind +Vis +Ndx +Name |
| 71 | +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * |
| 72 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 * |
| 73 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * |
| 74 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 * |
| 75 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 * |
| 76 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 * |
| 77 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 * |
| 78 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 * |
| 79 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * |
| 80 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 * |
| 81 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 * |
| 82 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 * |
| 83 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 * |
| 84 | +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +13 * |
| 85 | +[0-9]+: [0-9a-f]+ +0 +FILE +LOCAL +DEFAULT +ABS +tmpdir/tlsbin.o |
| 86 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl1 |
| 87 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl2 |
| 88 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl3 |
| 89 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl4 |
| 90 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl5 |
| 91 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl6 |
| 92 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl7 |
| 93 | +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl8 |
| 94 | +[0-9]+: 0+ +0 +FILE +LOCAL +DEFAULT +ABS * |
| 95 | +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +8 _TLS_MODULE_BASE_ |
| 96 | +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +9 _DYNAMIC |
| 97 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg8 |
| 98 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg3 |
| 99 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh3 |
| 100 | +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 |
| 101 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg4 |
| 102 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg5 |
| 103 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh7 |
| 104 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh8 |
| 105 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 |
| 106 | +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +6 _start |
| 107 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh4 |
| 108 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh5 |
| 109 | +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 __bss_start |
| 110 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg2 |
| 111 | +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 |
| 112 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh1 |
| 113 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg6 |
| 114 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +DEFAULT +8 sg7 |
| 115 | +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _edata |
| 116 | +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +10 _end |
| 117 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh2 |
| 118 | +[0-9]+: [0-9a-f]+ +0 +TLS +GLOBAL +HIDDEN +8 sh6 |