aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-11-02 05:40:05 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-11-02 05:40:05 +0000
commitca7d30d9caa3a1ebf5cf52887251cbaf69f8cf2b (patch)
tree5d53adba54480e246340f177e714ac9524cada8a
parentaef7fac45b88742e0bacc948402406c2dfc3a936 (diff)
downloadgdb-ca7d30d9caa3a1ebf5cf52887251cbaf69f8cf2b.zip
gdb-ca7d30d9caa3a1ebf5cf52887251cbaf69f8cf2b.tar.gz
gdb-ca7d30d9caa3a1ebf5cf52887251cbaf69f8cf2b.tar.bz2
* ld-cris/expdyn1.d, ld-cris/expdyn5.d, ld-cris/expdyn6.d,
ld-cris/expdyn7.d, ld-cris/gotplt1.d, ld-cris/gotplt2.d, ld-cris/gotplt3.d, ld-cris/hiddef1.d, ld-cris/libdso-2.d, ld-cris/locref1.d, ld-cris/locref2.d, ld-cris/weakref2.d, ld-i386/tlsbin.rd, ld-i386/tlsnopic.rd, ld-i386/tlspic.rd, ld-ia64/tlsbin.dd, ld-ia64/tlsbin.rd, ld-ia64/tlspic.dd, ld-ia64/tlspic.rd, ld-powerpc/tlsexe32.d, ld-powerpc/tlsexe32.g, ld-powerpc/tlsexe32.r, ld-powerpc/tlsexe32.t, ld-powerpc/tlsso32.d, ld-powerpc/tlsso32.g, ld-powerpc/tlsso32.r, ld-powerpc/tlsso32.t, ld-s390/tlsbin.dd, ld-s390/tlsbin.rd, ld-s390/tlspic.rd, ld-sparc/tlssunbin32.rd, ld-sparc/tlssunpic32.rd, ld-x86-64/tlsbin.rd, ld-x86-64/tlspic.dd, ld-x86-64/tlspic.rd: Adjust for _GLOBAL_OFFSET_TABLE_ now hidden.
-rw-r--r--ld/testsuite/ChangeLog16
-rw-r--r--ld/testsuite/ld-cris/expdyn1.d2
-rw-r--r--ld/testsuite/ld-cris/expdyn5.d4
-rw-r--r--ld/testsuite/ld-cris/expdyn6.d4
-rw-r--r--ld/testsuite/ld-cris/expdyn7.d4
-rw-r--r--ld/testsuite/ld-cris/gotplt1.d38
-rw-r--r--ld/testsuite/ld-cris/gotplt2.d24
-rw-r--r--ld/testsuite/ld-cris/gotplt3.d26
-rw-r--r--ld/testsuite/ld-cris/hiddef1.d2
-rw-r--r--ld/testsuite/ld-cris/libdso-2.d2
-rw-r--r--ld/testsuite/ld-cris/locref1.d2
-rw-r--r--ld/testsuite/ld-cris/locref2.d2
-rw-r--r--ld/testsuite/ld-cris/weakref2.d2
-rw-r--r--ld/testsuite/ld-i386/tlsbin.rd11
-rw-r--r--ld/testsuite/ld-i386/tlsnopic.rd5
-rw-r--r--ld/testsuite/ld-i386/tlspic.rd7
-rw-r--r--ld/testsuite/ld-ia64/tlsbin.dd8
-rw-r--r--ld/testsuite/ld-ia64/tlsbin.rd7
-rw-r--r--ld/testsuite/ld-ia64/tlspic.dd8
-rw-r--r--ld/testsuite/ld-ia64/tlspic.rd5
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe32.d63
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe32.g4
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe32.r71
-rw-r--r--ld/testsuite/ld-powerpc/tlsexe32.t4
-rw-r--r--ld/testsuite/ld-powerpc/tlsso32.d64
-rw-r--r--ld/testsuite/ld-powerpc/tlsso32.g8
-rw-r--r--ld/testsuite/ld-powerpc/tlsso32.r99
-rw-r--r--ld/testsuite/ld-powerpc/tlsso32.t4
-rw-r--r--ld/testsuite/ld-s390/tlsbin.dd2
-rw-r--r--ld/testsuite/ld-s390/tlsbin.rd23
-rw-r--r--ld/testsuite/ld-s390/tlspic.rd19
-rw-r--r--ld/testsuite/ld-sparc/tlssunbin32.rd62
-rw-r--r--ld/testsuite/ld-sparc/tlssunpic32.rd5
-rw-r--r--ld/testsuite/ld-x86-64/tlsbin.rd9
-rw-r--r--ld/testsuite/ld-x86-64/tlspic.dd14
-rw-r--r--ld/testsuite/ld-x86-64/tlspic.rd5
36 files changed, 320 insertions, 315 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index d41972d..dd17dc9 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,19 @@
+2004-11-02 Hans-Peter Nilsson <hp@axis.com>
+
+ * ld-cris/expdyn1.d, ld-cris/expdyn5.d, ld-cris/expdyn6.d,
+ ld-cris/expdyn7.d, ld-cris/gotplt1.d, ld-cris/gotplt2.d,
+ ld-cris/gotplt3.d, ld-cris/hiddef1.d, ld-cris/libdso-2.d,
+ ld-cris/locref1.d, ld-cris/locref2.d, ld-cris/weakref2.d,
+ ld-i386/tlsbin.rd, ld-i386/tlsnopic.rd, ld-i386/tlspic.rd,
+ ld-ia64/tlsbin.dd, ld-ia64/tlsbin.rd, ld-ia64/tlspic.dd,
+ ld-ia64/tlspic.rd, ld-powerpc/tlsexe32.d, ld-powerpc/tlsexe32.g,
+ ld-powerpc/tlsexe32.r, ld-powerpc/tlsexe32.t,
+ ld-powerpc/tlsso32.d, ld-powerpc/tlsso32.g, ld-powerpc/tlsso32.r,
+ ld-powerpc/tlsso32.t, ld-s390/tlsbin.dd, ld-s390/tlsbin.rd,
+ ld-s390/tlspic.rd, ld-sparc/tlssunbin32.rd,
+ ld-sparc/tlssunpic32.rd, ld-x86-64/tlsbin.rd, ld-x86-64/tlspic.dd,
+ ld-x86-64/tlspic.rd: Adjust for _GLOBAL_OFFSET_TABLE_ now hidden.
+
2004-10-26 Paul Brook <paul@codesourcery.com>
* ld-elfvers/vers.exp (build_binary): Add ldargs parameter.
diff --git a/ld/testsuite/ld-cris/expdyn1.d b/ld/testsuite/ld-cris/expdyn1.d
index b9717fc..9097c4f 100644
--- a/ld/testsuite/ld-cris/expdyn1.d
+++ b/ld/testsuite/ld-cris/expdyn1.d
@@ -9,6 +9,6 @@
DYNAMIC SYMBOL TABLE:
#...
-00080206 g DF .text 00000002 expfn
+00080... g DF .text 00000002 expfn
00082... g DO .data 00000000 expobj
#pass
diff --git a/ld/testsuite/ld-cris/expdyn5.d b/ld/testsuite/ld-cris/expdyn5.d
index d4152c9..f529cfe 100644
--- a/ld/testsuite/ld-cris/expdyn5.d
+++ b/ld/testsuite/ld-cris/expdyn5.d
@@ -9,5 +9,5 @@
.*: file format elf32-cris
Contents of section \.got:
- 82288 20220800 00000000 00000000 06020800 .*
- 82298 9c220800 .*
+ 82268 00220800 00000000 00000000 dc010800 .*
+ 82278 7c220800 .*
diff --git a/ld/testsuite/ld-cris/expdyn6.d b/ld/testsuite/ld-cris/expdyn6.d
index 6642b16..297b77b 100644
--- a/ld/testsuite/ld-cris/expdyn6.d
+++ b/ld/testsuite/ld-cris/expdyn6.d
@@ -9,5 +9,5 @@
.*: file format elf32-cris
Contents of section \.got:
- 822e8 80220800 00000000 00000000 00000000 .*
- 822f8 4e020800 00230800 .*
+ 822c8 60220800 00000000 00000000 00000000 .*
+ 822d8 24020800 e0220800 .*
diff --git a/ld/testsuite/ld-cris/expdyn7.d b/ld/testsuite/ld-cris/expdyn7.d
index cfda8d4..cecba85 100644
--- a/ld/testsuite/ld-cris/expdyn7.d
+++ b/ld/testsuite/ld-cris/expdyn7.d
@@ -9,5 +9,5 @@
.*: file format elf32-cris
Contents of section \.got:
- 822e8 80220800 00000000 00000000 04230800 .*
- 822f8 4b020800 00230800 .*
+ 822c8 60220800 00000000 00000000 e4220800 .*
+ 822d8 21020800 e0220800 .*
diff --git a/ld/testsuite/ld-cris/gotplt1.d b/ld/testsuite/ld-cris/gotplt1.d
index 0065421..222f18b 100644
--- a/ld/testsuite/ld-cris/gotplt1.d
+++ b/ld/testsuite/ld-cris/gotplt1.d
@@ -19,30 +19,30 @@
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
-000822d4 R_CRIS_JUMP_SLOT dsofn
+000822b4 R_CRIS_JUMP_SLOT dsofn
Contents of section .*
#...
Contents of section \.rela\.plt:
- 801d8 d4220800 0b060000 00000000 .*
+ 801ac b4220800 0b050000 00000000 .*
Contents of section \.plt:
- 801e4 fce17e7e 7f0dcc22 0800307a 7f0dd022 .*
- 801f4 08003009 7f0dd422 08003009 3f7e0000 .*
- 80204 00002ffe d8ffffff .*
+ 801b8 fce17e7e 7f0dac22 0800307a 7f0db022 .*
+ 801c8 08003009 7f0db422 08003009 3f7e0000 .*
+ 801d8 00002ffe d8ffffff .*
Contents of section \.text:
- 8020c 5f1d0c00 30096f1d 0c000000 30090000 .*
- 8021c 6f0d1000 0000611a 6f2ef801 08000000 .*
- 8022c 6f3e64df ffff0000 .*
+ 801e0 5f1d0c00 30096f1d 0c000000 30090000 .*
+ 801f0 6f0d1000 0000611a 6f2ecc01 08000000 .*
+ 80200 6f3e58df ffff0000 .*
Contents of section \.dynamic:
- 82240 01000000 01000000 04000000 e4000800 .*
- 82250 05000000 84010800 06000000 14010800 .*
- 82260 0a000000 51000000 0b000000 10000000 .*
- 82270 15000000 00000000 03000000 c8220800 .*
- 82280 02000000 0c000000 14000000 07000000 .*
- 82290 17000000 d8010800 00000000 00000000 .*
- 822a0 00000000 00000000 00000000 00000000 .*
- 822b0 00000000 00000000 00000000 00000000 .*
- 822c0 00000000 00000000 .*
+ 82220 01000000 01000000 04000000 e4000800 .*
+ 82230 05000000 70010800 06000000 10010800 .*
+ 82240 0a000000 3b000000 0b000000 10000000 .*
+ 82250 15000000 00000000 03000000 a8220800 .*
+ 82260 02000000 0c000000 14000000 07000000 .*
+ 82270 17000000 ac010800 00000000 00000000 .*
+ 82280 00000000 00000000 00000000 00000000 .*
+ 82290 00000000 00000000 00000000 00000000 .*
+ 822a0 00000000 00000000 .*
Contents of section \.got:
- 822c8 40220800 00000000 00000000 00020800 .*
- 822d8 f8010800 .*
+ 822a8 20220800 00000000 00000000 d4010800 .*
+ 822b8 cc010800 .*
diff --git a/ld/testsuite/ld-cris/gotplt2.d b/ld/testsuite/ld-cris/gotplt2.d
index 1f83a68..feddf71 100644
--- a/ld/testsuite/ld-cris/gotplt2.d
+++ b/ld/testsuite/ld-cris/gotplt2.d
@@ -16,22 +16,22 @@
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
-000022bc R_CRIS_GLOB_DAT dsofn
+0000227c R_CRIS_GLOB_DAT dsofn
Contents of section .*
#...
Contents of section \.rela\.got:
- 01f8 bc220000 0a0c0000 00000000 .*
+ 01cc 7c220000 0a0b0000 00000000 .*
Contents of section \.text:
- 0204 5f1d0c00 30096f1d 0c000000 30090000 .*
- 0214 6f0d0c00 0000611a 6f3e6cdf ffff0000 .*
+ 01d8 5f1d0c00 30096f1d 0c000000 30090000 .*
+ 01e8 6f0d0c00 0000611a 6f3e80df ffff0000 .*
Contents of section \.dynamic:
- 2240 04000000 94000000 05000000 ac010000 .*
- 2250 06000000 dc000000 0a000000 49000000 .*
- 2260 0b000000 10000000 07000000 f8010000 .*
- 2270 08000000 0c000000 09000000 0c000000 .*
- 2280 00000000 00000000 00000000 00000000 .*
- 2290 00000000 00000000 00000000 00000000 .*
- 22a0 00000000 00000000 00000000 00000000 .*
+ 2200 04000000 94000000 05000000 98010000 .*
+ 2210 06000000 d8000000 0a000000 33000000 .*
+ 2220 0b000000 10000000 07000000 cc010000 .*
+ 2230 08000000 0c000000 09000000 0c000000 .*
+ 2240 00000000 00000000 00000000 00000000 .*
+ 2250 00000000 00000000 00000000 00000000 .*
+ 2260 00000000 00000000 00000000 00000000 .*
Contents of section \.got:
- 22b0 40220000 00000000 00000000 00000000 .*
+ 2270 00220000 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-cris/gotplt3.d b/ld/testsuite/ld-cris/gotplt3.d
index 528ea8c..07d217a 100644
--- a/ld/testsuite/ld-cris/gotplt3.d
+++ b/ld/testsuite/ld-cris/gotplt3.d
@@ -13,23 +13,23 @@
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
-000022bc R_CRIS_GLOB_DAT dsofn
+0000227c R_CRIS_GLOB_DAT dsofn
Contents of section .*
#...
Contents of section \.rela\.got:
- 01f8 bc220000 0a0c0000 00000000 .*
+ 01cc 7c220000 0a0b0000 00000000 .*
Contents of section \.text:
- 0204 5f1d0c00 30096f1d 0c000000 30090000 .*
- 0214 6f0d0c00 0000611a 6f3e6cdf ffff0000 .*
- 0224 0f050000 .*
+ 01d8 5f1d0c00 30096f1d 0c000000 30090000 .*
+ 01e8 6f0d0c00 0000611a 6f3e80df ffff0000 .*
+ 01f8 0f050000 .*
Contents of section \.dynamic:
- 2240 04000000 94000000 05000000 ac010000 .*
- 2250 06000000 dc000000 0a000000 49000000 .*
- 2260 0b000000 10000000 07000000 f8010000 .*
- 2270 08000000 0c000000 09000000 0c000000 .*
- 2280 00000000 00000000 00000000 00000000 .*
- 2290 00000000 00000000 00000000 00000000 .*
- 22a0 00000000 00000000 00000000 00000000 .*
+ 2200 04000000 94000000 05000000 98010000 .*
+ 2210 06000000 d8000000 0a000000 33000000 .*
+ 2220 0b000000 10000000 07000000 cc010000 .*
+ 2230 08000000 0c000000 09000000 0c000000 .*
+ 2240 00000000 00000000 00000000 00000000 .*
+ 2250 00000000 00000000 00000000 00000000 .*
+ 2260 00000000 00000000 00000000 00000000 .*
Contents of section \.got:
- 22b0 40220000 00000000 00000000 00000000 .*
+ 2270 00220000 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-cris/hiddef1.d b/ld/testsuite/ld-cris/hiddef1.d
index 0d6c4a8..e491be9 100644
--- a/ld/testsuite/ld-cris/hiddef1.d
+++ b/ld/testsuite/ld-cris/hiddef1.d
@@ -22,7 +22,7 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
#...
[0-9a-f]+ 0+c R_CRIS_RELATIVE [0-9a-f]+
#...
-Symbol table '\.dynsym' contains 10 entries:
+Symbol table '\.dynsym' contains 9 entries:
#...
Symbol table '\.symtab' contains 21 entries:
#pass
diff --git a/ld/testsuite/ld-cris/libdso-2.d b/ld/testsuite/ld-cris/libdso-2.d
index 9e9943b..c5d2a1b 100644
--- a/ld/testsuite/ld-cris/libdso-2.d
+++ b/ld/testsuite/ld-cris/libdso-2.d
@@ -60,7 +60,7 @@ Symbol table '\.symtab' contains 23 entries:
15: 0+21a0 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
16: 0+2238 0 NOTYPE LOCAL DEFAULT ABS __bss_start
17: 0+2238 0 NOTYPE LOCAL DEFAULT ABS _edata
- 18: 0+2228 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+ 18: 0+2228 0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
19: 0+2240 0 NOTYPE LOCAL DEFAULT ABS _end
20: 0+184 0 FUNC LOCAL DEFAULT 7 dsofn
21: 0+ 0 OBJECT GLOBAL DEFAULT ABS TST1
diff --git a/ld/testsuite/ld-cris/locref1.d b/ld/testsuite/ld-cris/locref1.d
index f81fc0a..c13a2e0 100644
--- a/ld/testsuite/ld-cris/locref1.d
+++ b/ld/testsuite/ld-cris/locref1.d
@@ -14,7 +14,7 @@ SYMBOL TABLE:
0+80076 g F \.text 0+2 expfn
0+820ac g O \.data 0+ expobj
#...
-0+820a0 g O \.got 0+ _GLOBAL_OFFSET_TABLE_
+0+820a0 g O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
#...
Disassembly of section \.text:
#...
diff --git a/ld/testsuite/ld-cris/locref2.d b/ld/testsuite/ld-cris/locref2.d
index ca25dd8..784be29 100644
--- a/ld/testsuite/ld-cris/locref2.d
+++ b/ld/testsuite/ld-cris/locref2.d
@@ -14,7 +14,7 @@ SYMBOL TABLE:
0+ w \*UND\* 0+ expfn
0+ w \*UND\* 0+ expobj
#...
-0+820a0 g O \.got 0+ _GLOBAL_OFFSET_TABLE_
+0+820a0 g O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_
#...
Disassembly of section \.text:
#...
diff --git a/ld/testsuite/ld-cris/weakref2.d b/ld/testsuite/ld-cris/weakref2.d
index 5ebb9d5..b991344 100644
--- a/ld/testsuite/ld-cris/weakref2.d
+++ b/ld/testsuite/ld-cris/weakref2.d
@@ -7,4 +7,4 @@
.*: file format elf32-cris
Contents of section \.got:
- 82248 e0210800 00000000 00000000 00000000 .*
+ 82208 a0210800 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-i386/tlsbin.rd b/ld/testsuite/ld-i386/tlsbin.rd
index 514d652..b848944 100644
--- a/ld/testsuite/ld-i386/tlsbin.rd
+++ b/ld/testsuite/ld-i386/tlsbin.rd
@@ -66,13 +66,13 @@ Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 9 entries:
0+804a114 0000060e R_386_TLS_TPOFF +0+ +sG4
0+804a118 00000825 R_386_TLS_TPOFF32 0+ +sG6
0+804a11c 00000925 R_386_TLS_TPOFF32 0+ +sG1
-0+804a120 00000d0e R_386_TLS_TPOFF +0+ +sG8
+0+804a120 00000c0e R_386_TLS_TPOFF +0+ +sG8
-Relocation section '.rel.plt' at offset 0x30c contains 1 entries:
+Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym.Value Sym. Name
-0+804a130 00000e07 R_386_JUMP_SLOT +[0-9a-f]+ +___tls_get_addr
+0+804a130 00000d07 R_386_JUMP_SLOT +[0-9a-f]+ +___tls_get_addr
-Symbol table '.dynsym' contains 15 entries:
+Symbol table '.dynsym' contains 14 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG3
@@ -85,7 +85,6 @@ Symbol table '.dynsym' contains 15 entries:
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG6
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG1
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG8
+[0-9]+: [0-9a-f]+ +0 FUNC +GLOBAL DEFAULT UND ___tls_get_addr
@@ -158,7 +157,7 @@ Symbol table '.symtab' contains 75 entries:
+[0-9]+: 00000014 +0 TLS +GLOBAL DEFAULT +9 sg6
+[0-9]+: 00000018 +0 TLS +GLOBAL DEFAULT +9 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL HIDDEN 13 _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 00000044 +0 TLS +GLOBAL HIDDEN +9 sh2
+[0-9]+: 00000054 +0 TLS +GLOBAL HIDDEN +9 sh6
diff --git a/ld/testsuite/ld-i386/tlsnopic.rd b/ld/testsuite/ld-i386/tlsnopic.rd
index d84f616..b626854 100644
--- a/ld/testsuite/ld-i386/tlsnopic.rd
+++ b/ld/testsuite/ld-i386/tlsnopic.rd
@@ -72,7 +72,7 @@ Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 20 entries:
0+208c 0+d0e R_386_TLS_TPOFF 0+ sg2
-Symbol table '.dynsym' contains 17 entries:
+Symbol table '.dynsym' contains 16 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +5 *
@@ -89,7 +89,6 @@ Symbol table '.dynsym' contains 17 entries:
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS __bss_start
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sg2
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+2098 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
Symbol table '.symtab' contains 36 entries:
@@ -118,6 +117,7 @@ Symbol table '.symtab' contains 36 entries:
+[0-9]+: 0+1c +0 TLS +LOCAL HIDDEN +6 sh3
+[0-9]+: 0+20 +0 TLS +LOCAL HIDDEN +6 sh4
+[0-9]+: 0+14 +0 TLS +LOCAL HIDDEN +6 sh1
+ +[0-9]+: 0+2098 +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+18 +0 TLS +LOCAL HIDDEN +6 sh2
+[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sg3
@@ -128,5 +128,4 @@ Symbol table '.symtab' contains 36 entries:
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS __bss_start
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sg2
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+2098 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
diff --git a/ld/testsuite/ld-i386/tlspic.rd b/ld/testsuite/ld-i386/tlspic.rd
index 4b380bc..6508329 100644
--- a/ld/testsuite/ld-i386/tlspic.rd
+++ b/ld/testsuite/ld-i386/tlspic.rd
@@ -81,9 +81,9 @@ Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 26 entries:
Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym.Value Sym. Name
-[0-9a-f]+ 0+1407 R_386_JUMP_SLOT 0+ ___tls_get_addr
+[0-9a-f]+ 0+1307 R_386_JUMP_SLOT 0+ ___tls_get_addr
-Symbol table '.dynsym' contains 21 entries:
+Symbol table '.dynsym' contains 20 entries:
+Num: + Value Size Type + Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +7 *
@@ -103,7 +103,6 @@ Symbol table '.dynsym' contains 21 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 NOTYPE GLOBAL DEFAULT UND ___tls_get_addr
@@ -149,6 +148,7 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+74 +0 TLS +LOCAL HIDDEN +9 sH6
+[0-9]+: 0+7c +0 TLS +LOCAL HIDDEN +9 sH8
+[0-9]+: 0+40 +0 TLS +LOCAL HIDDEN +8 sh1
+ +[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+44 +0 TLS +LOCAL HIDDEN +8 sh2
+[0-9]+: 0+54 +0 TLS +LOCAL HIDDEN +8 sh6
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +8 sg8
@@ -163,6 +163,5 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+ +0 NOTYPE GLOBAL DEFAULT UND ___tls_get_addr
diff --git a/ld/testsuite/ld-ia64/tlsbin.dd b/ld/testsuite/ld-ia64/tlsbin.dd
index c3177b8..44790c7 100644
--- a/ld/testsuite/ld-ia64/tlsbin.dd
+++ b/ld/testsuite/ld-ia64/tlsbin.dd
@@ -18,25 +18,25 @@ Disassembly of section .text:
40+101c: 81 0a 00 90[ ]+addl r15=40,r1;;
40+1020: 19 18 01 1c 18 10[ ]+\[MMB\][ ]+ld8 r35=\[r14\]
40+1026: 40 02 3c 30 20 00[ ]+ld8 r36=\[r15\]
-40+102c: e8 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+40+102c: c8 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
40+1030: 0d 70 c0 02 00 24[ ]+\[MFI\][ ]+addl r14=48,r1
40+1036: 00 00 00 02 00 e0[ ]+nop.f 0x0
40+103c: 01 0c 00 90[ ]+addl r15=64,r1;;
40+1040: 19 18 01 1c 18 10[ ]+\[MMB\][ ]+ld8 r35=\[r14\]
40+1046: 40 02 3c 30 20 00[ ]+ld8 r36=\[r15\]
-40+104c: c8 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+40+104c: a8 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
40+1050: 0d 70 c0 02 00 24[ ]+\[MFI\][ ]+addl r14=48,r1
40+1056: 00 00 00 02 00 80[ ]+nop.f 0x0
40+105c: 14 02 00 90[ ]+mov r36=33;;
40+1060: 1d 18 01 1c 18 10[ ]+\[MFB\][ ]+ld8 r35=\[r14\]
40+1066: 00 00 00 02 00 00[ ]+nop.f 0x0
-40+106c: a8 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+40+106c: 88 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
40+1070: 0d 70 c0 02 00 24[ ]+\[MFI\][ ]+addl r14=48,r1
40+1076: 00 00 00 02 00 80[ ]+nop.f 0x0
40+107c: 04 00 00 84[ ]+mov r36=r0;;
40+1080: 1d 18 01 1c 18 10[ ]+\[MFB\][ ]+ld8 r35=\[r14\]
40+1086: 00 00 00 02 00 00[ ]+nop.f 0x0
-40+108c: 88 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+40+108c: 68 f3 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
40+1090: 0b 10 00 10 00 21[ ]+\[MMI\][ ]+mov r2=r8;;
40+1096: e0 00 0a 00 48 e0[ ]+addl r14=64,r2
40+109c: 61 14 00 90[ ]+addl r15=70,r2;;
diff --git a/ld/testsuite/ld-ia64/tlsbin.rd b/ld/testsuite/ld-ia64/tlsbin.rd
index 77eebae..4c68ff3 100644
--- a/ld/testsuite/ld-ia64/tlsbin.rd
+++ b/ld/testsuite/ld-ia64/tlsbin.rd
@@ -59,7 +59,7 @@ Relocation section '.rela.IA_64.pltoff' at offset 0x[0-9a-f]+ contains 1 entries
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
60+2050 0+300000081 R_IA64_IPLTLSB +0+ __tls_get_addr \+ 0
-Symbol table '.dynsym' contains 9 entries:
+Symbol table '.dynsym' contains 8 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+0: 0+ +0 NOTYPE +LOCAL +DEFAULT +UND *
+1: 60+11d0 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
@@ -68,8 +68,7 @@ Symbol table '.dynsym' contains 9 entries:
+4: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+5: 0+ +0 TLS +GLOBAL DEFAULT +UND sG1
+6: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +7: 60+2000 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
- +8: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+ +7: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
Symbol table '.symtab' contains 72 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
@@ -138,7 +137,7 @@ Symbol table '.symtab' contains 72 entries:
+62: 0+14 +0 TLS +GLOBAL DEFAULT +11 sg6
+63: 0+18 +0 TLS +GLOBAL DEFAULT +11 sg7
+64: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +65: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +65: [0-9a-f]+ +0 OBJECT +GLOBAL HIDDEN +15 _GLOBAL_OFFSET_TABLE_
+66: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+67: 0+44 +0 TLS +GLOBAL HIDDEN +11 sh2
+68: 0+54 +0 TLS +GLOBAL HIDDEN +11 sh6
diff --git a/ld/testsuite/ld-ia64/tlspic.dd b/ld/testsuite/ld-ia64/tlspic.dd
index cfbbbe4..a8953c5 100644
--- a/ld/testsuite/ld-ia64/tlspic.dd
+++ b/ld/testsuite/ld-ia64/tlspic.dd
@@ -18,25 +18,25 @@ Disassembly of section .text:
+101c: 01 0a 00 90[ ]+addl r15=32,r1;;
+1020: 19 18 01 1c 18 10[ ]+\[MMB\] +ld8 r35=\[r14\]
+1026: 40 02 3c 30 20 00[ ]+ld8 r36=\[r15\]
- +102c: 88 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+ +102c: 68 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+1030: 0d 70 c0 02 00 24[ ]+\[MFI\] +addl r14=48,r1
+1036: 00 00 00 02 00 e0[ ]+nop.f 0x0
+103c: 01 0c 00 90[ ]+addl r15=64,r1;;
+1040: 19 18 01 1c 18 10[ ]+\[MMB\] +ld8 r35=\[r14\]
+1046: 40 02 3c 30 20 00[ ]+ld8 r36=\[r15\]
- +104c: 68 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+ +104c: 48 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+1050: 0d 70 c0 02 00 24[ ]+\[MFI\] +addl r14=48,r1
+1056: 00 00 00 02 00 80[ ]+nop.f 0x0
+105c: 14 02 00 90[ ]+mov r36=33;;
+1060: 1d 18 01 1c 18 10[ ]+\[MFB\] +ld8 r35=\[r14\]
+1066: 00 00 00 02 00 00[ ]+nop.f 0x0
- +106c: 48 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+ +106c: 28 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+1070: 0d 70 c0 02 00 24[ ]+\[MFI\] +addl r14=48,r1
+1076: 00 00 00 02 00 80[ ]+nop.f 0x0
+107c: 04 00 00 84[ ]+mov r36=r0;;
+1080: 1d 18 01 1c 18 10[ ]+\[MFB\] +ld8 r35=\[r14\]
+1086: 00 00 00 02 00 00[ ]+nop.f 0x0
- +108c: 28 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+ +108c: 08 f5 ff 58[ ]+br.call.sptk.many b0=[0-9a-f]+ <.*>;;
+1090: 0b 10 00 10 00 21[ ]+\[MMI\] +mov r2=r8;;
+1096: e0 00 0a 00 48 e0[ ]+addl r14=64,r2
+109c: 21 16 00 90[ ]+addl r15=98,r2;;
diff --git a/ld/testsuite/ld-ia64/tlspic.rd b/ld/testsuite/ld-ia64/tlspic.rd
index 9da9519..c2ad880 100644
--- a/ld/testsuite/ld-ia64/tlspic.rd
+++ b/ld/testsuite/ld-ia64/tlspic.rd
@@ -59,7 +59,7 @@ Relocation section '.rela.IA_64.pltoff' at offset 0x[0-9a-f]+ contains 1 entries
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
0+[0-9a-f]+ +0+e00000081 R_IA64_IPLTLSB +0+ __tls_get_addr \+ 0
-Symbol table '.dynsym' contains 24 entries:
+Symbol table '.dynsym' contains 23 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE +LOCAL +DEFAULT +UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +7 *
@@ -83,7 +83,6 @@ Symbol table '.dynsym' contains 24 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +10 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +10 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+12000 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
Symbol table '.symtab' contains 60 entries:
@@ -131,6 +130,7 @@ Symbol table '.symtab' contains 60 entries:
+[0-9]+: 0+74 +0 TLS +LOCAL +HIDDEN +11 sH6
+[0-9]+: 0+7c +0 TLS +LOCAL +HIDDEN +11 sH8
+[0-9]+: 0+40 +0 TLS +LOCAL +HIDDEN +10 sh1
+ +[0-9]+: 0+12000 +0 OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+44 +0 TLS +LOCAL +HIDDEN +10 sh2
+[0-9]+: 0+54 +0 TLS +LOCAL +HIDDEN +10 sh6
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +10 sg8
@@ -146,5 +146,4 @@ Symbol table '.symtab' contains 60 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +10 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +10 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+12000 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
diff --git a/ld/testsuite/ld-powerpc/tlsexe32.d b/ld/testsuite/ld-powerpc/tlsexe32.d
index c2cf43f..b9e8b2e 100644
--- a/ld/testsuite/ld-powerpc/tlsexe32.d
+++ b/ld/testsuite/ld-powerpc/tlsexe32.d
@@ -8,38 +8,39 @@
Disassembly of section \.text:
-0180028c <_start>:
- 180028c: 80 7f 00 0c lwz r3,12\(r31\)
- 1800290: 7c 63 12 14 add r3,r3,r2
- 1800294: 38 7f 00 10 addi r3,r31,16
- 1800298: 48 01 01 85 bl 181041c .*
- 180029c: 3c 62 00 00 addis r3,r2,0
- 18002a0: 38 63 90 1c addi r3,r3,-28644
+01800264 <_start>:
+ 1800264: 80 7f 00 0c lwz r3,12\(r31\)
+ 1800268: 7c 63 12 14 add r3,r3,r2
+ 180026c: 38 7f 00 10 addi r3,r31,16
+ 1800270: 48 01 01 85 bl 18103f4 .*
+ 1800274: 3c 62 00 00 addis r3,r2,0
+ 1800278: 38 63 90 1c addi r3,r3,-28644
+ 180027c: 3c 62 00 00 addis r3,r2,0
+ 1800280: 38 63 10 00 addi r3,r3,4096
+ 1800284: 39 23 80 20 addi r9,r3,-32736
+ 1800288: 3d 23 00 00 addis r9,r3,0
+ 180028c: 81 49 80 24 lwz r10,-32732\(r9\)
+ 1800290: 3d 22 00 00 addis r9,r2,0
+ 1800294: a1 49 90 2c lhz r10,-28628\(r9\)
+ 1800298: 89 42 90 30 lbz r10,-28624\(r2\)
+ 180029c: 3d 22 00 00 addis r9,r2,0
+ 18002a0: 99 49 90 34 stb r10,-28620\(r9\)
18002a4: 3c 62 00 00 addis r3,r2,0
- 18002a8: 38 63 10 00 addi r3,r3,4096
- 18002ac: 39 23 80 20 addi r9,r3,-32736
- 18002b0: 3d 23 00 00 addis r9,r3,0
- 18002b4: 81 49 80 24 lwz r10,-32732\(r9\)
- 18002b8: 3d 22 00 00 addis r9,r2,0
- 18002bc: a1 49 90 2c lhz r10,-28628\(r9\)
- 18002c0: 89 42 90 30 lbz r10,-28624\(r2\)
- 18002c4: 3d 22 00 00 addis r9,r2,0
- 18002c8: 99 49 90 34 stb r10,-28620\(r9\)
- 18002cc: 3c 62 00 00 addis r3,r2,0
- 18002d0: 38 63 90 00 addi r3,r3,-28672
- 18002d4: 3c 62 00 00 addis r3,r2,0
- 18002d8: 38 63 10 00 addi r3,r3,4096
- 18002dc: 91 43 80 04 stw r10,-32764\(r3\)
- 18002e0: 3d 23 00 00 addis r9,r3,0
- 18002e4: 91 49 80 08 stw r10,-32760\(r9\)
- 18002e8: 3d 22 00 00 addis r9,r2,0
- 18002ec: b1 49 90 2c sth r10,-28628\(r9\)
- 18002f0: a1 42 90 14 lhz r10,-28652\(r2\)
- 18002f4: 3d 22 00 00 addis r9,r2,0
- 18002f8: a9 49 90 18 lha r10,-28648\(r9\)
+ 18002a8: 38 63 90 00 addi r3,r3,-28672
+ 18002ac: 3c 62 00 00 addis r3,r2,0
+ 18002b0: 38 63 10 00 addi r3,r3,4096
+ 18002b4: 91 43 80 04 stw r10,-32764\(r3\)
+ 18002b8: 3d 23 00 00 addis r9,r3,0
+ 18002bc: 91 49 80 08 stw r10,-32760\(r9\)
+ 18002c0: 3d 22 00 00 addis r9,r2,0
+ 18002c4: b1 49 90 2c sth r10,-28628\(r9\)
+ 18002c8: a1 42 90 14 lhz r10,-28652\(r2\)
+ 18002cc: 3d 22 00 00 addis r9,r2,0
+ 18002d0: a9 49 90 18 lha r10,-28648\(r9\)
Disassembly of section \.got:
-018103b8 <\.got>:
- 18103b8: 4e 80 00 21 blrl
- 18103bc: 01 81 03 18 \.long 0x1810318
+01810390 <_GLOBAL_OFFSET_TABLE_-0x4>:
+ 1810390: 4e 80 00 21 blrl
+01810394 <_GLOBAL_OFFSET_TABLE_>:
+ 1810394: 01 81 02 f0 00 00 00 00 00 00 00 00 00 00 00 00 .*
\.\.\.
diff --git a/ld/testsuite/ld-powerpc/tlsexe32.g b/ld/testsuite/ld-powerpc/tlsexe32.g
index c7ffff3..e30d60f 100644
--- a/ld/testsuite/ld-powerpc/tlsexe32.g
+++ b/ld/testsuite/ld-powerpc/tlsexe32.g
@@ -7,5 +7,5 @@
.*: +file format elf32-powerpc
Contents of section \.got:
- 18103b8 4e800021 01810318 00000000 00000000 .*
- 18103c8 00000000 00000000 00000000 .*
+ 1810390 4e800021 018102f0 00000000 00000000 .*
+ 18103a0 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-powerpc/tlsexe32.r b/ld/testsuite/ld-powerpc/tlsexe32.r
index 7a9da4d..1b8bf68 100644
--- a/ld/testsuite/ld-powerpc/tlsexe32.r
+++ b/ld/testsuite/ld-powerpc/tlsexe32.r
@@ -16,15 +16,15 @@ Section Headers:
+\[ 4\] \.dynstr +.*
+\[ 5\] \.rela\.dyn +.*
+\[ 6\] \.rela\.plt +.*
- +\[ 7\] \.text +PROGBITS +0180028c 00028c 000070 00 +AX +0 +0 +1
+ +\[ 7\] \.text +PROGBITS +01800264 000264 000070 00 +AX +0 +0 +1
+\[ 8\] \.sdata2 +PROGBITS +.*
- +\[ 9\] \.tdata +PROGBITS +018102fc 0002fc 00001c 00 WAT +0 +0 +4
- +\[10\] \.tbss +NOBITS +01810318 000318 00001c 00 WAT +0 +0 +4
- +\[11\] \.dynamic +DYNAMIC +01810318 000318 0000a0 08 +WA +4 +0 +4
- +\[12\] \.data +PROGBITS +018103b8 0003b8 000000 00 +WA +0 +0 +1
- +\[13\] \.got +PROGBITS +018103b8 0003b8 00001c 04 WAX +0 +0 +4
- +\[14\] \.sdata +PROGBITS +018103d4 0003d4 000000 00 +WA +0 +0 +4
- +\[15\] \.sbss +NOBITS +018103d4 0003d4 000000 00 +WA +0 +0 +1
+ +\[ 9\] \.tdata +PROGBITS +018102d4 0002d4 00001c 00 WAT +0 +0 +4
+ +\[10\] \.tbss +NOBITS +018102f0 0002f0 00001c 00 WAT +0 +0 +4
+ +\[11\] \.dynamic +DYNAMIC +018102f0 0002f0 0000a0 08 +WA +4 +0 +4
+ +\[12\] \.data +PROGBITS +01810390 000390 000000 00 +WA +0 +0 +1
+ +\[13\] \.got +PROGBITS +01810390 000390 00001c 04 WAX +0 +0 +4
+ +\[14\] \.sdata +PROGBITS +018103ac 0003ac 000000 00 +WA +0 +0 +4
+ +\[15\] \.sbss +NOBITS +018103ac 0003ac 000000 00 +WA +0 +0 +1
+\[16\] \.plt +NOBITS +.*
+\[17\] \.bss +NOBITS +.*
+\[18\] \.shstrtab +STRTAB +.*
@@ -33,7 +33,7 @@ Section Headers:
#...
Elf file type is EXEC \(Executable file\)
-Entry point 0x180028c
+Entry point 0x1800264
There are 6 program headers, starting at offset 52
Program Headers:
@@ -41,10 +41,10 @@ Program Headers:
+PHDR +0x000034 0x01800034 0x01800034 0x000e0 0x000e0 R E 0x4
+INTERP +0x000114 0x01800114 0x01800114 0x00011 0x00011 R +0x1
+\[Requesting program interpreter: .*\]
- +LOAD +0x000000 0x01800000 0x01800000 0x002fc 0x002fc R E 0x10000
- +LOAD +0x0002fc 0x018102fc 0x018102fc 0x000d8 0x0012c RWE 0x10000
- +DYNAMIC +0x000318 0x01810318 0x01810318 0x000a0 0x000a0 RW +0x4
- +TLS +0x0002fc 0x018102fc 0x018102fc 0x0001c 0x00038 R +0x4
+ +LOAD +0x000000 0x01800000 0x01800000 0x002d4 0x002d4 R E 0x10000
+ +LOAD +0x0002d4 0x018102d4 0x018102d4 0x000d8 0x0012c RWE 0x10000
+ +DYNAMIC +0x0002f0 0x018102f0 0x018102f0 0x000a0 0x000a0 RW +0x4
+ +TLS +0x0002d4 0x018102d4 0x018102d4 0x0001c 0x00038 R +0x4
Section to Segment mapping:
+Segment Sections\.\.\.
@@ -55,27 +55,26 @@ Program Headers:
+04 +\.dynamic
+05 +\.tdata \.tbss
-Relocation section '\.rela\.dyn' at offset 0x268 contains 2 entries:
+Relocation section '\.rela\.dyn' at offset 0x240 contains 2 entries:
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
-018103c8 +00000249 R_PPC_TPREL32 +00000000 +gd \+ 0
-018103cc +00000444 R_PPC_DTPMOD32 +00000000 +ld \+ 0
+018103a0 +00000249 R_PPC_TPREL32 +00000000 +gd \+ 0
+018103a4 +00000444 R_PPC_DTPMOD32 +00000000 +ld \+ 0
-Relocation section '\.rela\.plt' at offset 0x280 contains 1 entries:
+Relocation section '\.rela\.plt' at offset 0x258 contains 1 entries:
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
-0181041c +00000315 R_PPC_JMP_SLOT +0181041c +__tls_get_addr \+ 0
+018103f4 +00000315 R_PPC_JMP_SLOT +018103f4 +__tls_get_addr \+ 0
-Symbol table '\.dynsym' contains 10 entries:
+Symbol table '\.dynsym' contains 9 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+0: 00000000 +0 NOTYPE +LOCAL +DEFAULT +UND
- +1: 01810318 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+ +1: 018102f0 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+2: 00000000 +0 TLS +GLOBAL DEFAULT +UND gd
- +3: 0181041c +0 FUNC +GLOBAL DEFAULT +UND __tls_get_addr
+ +3: 018103f4 +0 FUNC +GLOBAL DEFAULT +UND __tls_get_addr
+4: 00000000 +0 TLS +GLOBAL DEFAULT +UND ld
- +5: 01810428 +0 NOTYPE +GLOBAL DEFAULT +ABS __end
- +6: 018103d4 +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
- +7: 018103d4 +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +8: 018103bc +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
- +9: 01810428 +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+ +5: 01810400 +0 NOTYPE +GLOBAL DEFAULT +ABS __end
+ +6: 018103ac +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+ +7: 018103ac +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
+ +8: 01810400 +0 NOTYPE +GLOBAL DEFAULT +ABS _end
Symbol table '\.symtab' contains 47 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
@@ -86,15 +85,15 @@ Symbol table '\.symtab' contains 47 entries:
+4: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +4
+5: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +5
+6: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +6
- +7: 0180028c +0 SECTION LOCAL +DEFAULT +7
+ +7: 01800264 +0 SECTION LOCAL +DEFAULT +7
+8: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +8
- +9: 018102fc +0 SECTION LOCAL +DEFAULT +9
- +10: 01810318 +0 SECTION LOCAL +DEFAULT +10
- +11: 01810318 +0 SECTION LOCAL +DEFAULT +11
- +12: 018103b8 +0 SECTION LOCAL +DEFAULT +12
- +13: 018103b8 +0 SECTION LOCAL +DEFAULT +13
- +14: 018103d4 +0 SECTION LOCAL +DEFAULT +14
- +15: 018103d4 +0 SECTION LOCAL +DEFAULT +15
+ +9: 018102d4 +0 SECTION LOCAL +DEFAULT +9
+ +10: 018102f0 +0 SECTION LOCAL +DEFAULT +10
+ +11: 018102f0 +0 SECTION LOCAL +DEFAULT +11
+ +12: 01810390 +0 SECTION LOCAL +DEFAULT +12
+ +13: 01810390 +0 SECTION LOCAL +DEFAULT +13
+ +14: 018103ac +0 SECTION LOCAL +DEFAULT +14
+ +15: 018103ac +0 SECTION LOCAL +DEFAULT +15
+16: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +16
+17: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +17
+18: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +18
@@ -107,7 +106,7 @@ Symbol table '\.symtab' contains 47 entries:
+25: 00000010 +0 TLS +LOCAL +DEFAULT +9 ie4
+26: 00000014 +0 TLS +LOCAL +DEFAULT +9 le4
+27: 00000018 +0 TLS +LOCAL +DEFAULT +9 le5
- +28: 01810318 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+ +28: 018102f0 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+29: 00000000 +0 TLS +GLOBAL DEFAULT +UND gd
+30: 00000030 +0 TLS +GLOBAL DEFAULT +10 le0
+31: [0-9a-f]+ +0 FUNC +GLOBAL DEFAULT +UND __tls_get_addr
@@ -121,7 +120,7 @@ Symbol table '\.symtab' contains 47 entries:
+39: 00000024 +0 TLS +GLOBAL DEFAULT +10 ld1
+40: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+41: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +42: 018103bc +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+ +42: 01810394 +0 OBJECT +GLOBAL +HIDDEN +13 _GLOBAL_OFFSET_TABLE_
+43: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+44: 0000001c +0 TLS +GLOBAL DEFAULT +10 gd0
+45: 0000002c +0 TLS +GLOBAL DEFAULT +10 ie0
diff --git a/ld/testsuite/ld-powerpc/tlsexe32.t b/ld/testsuite/ld-powerpc/tlsexe32.t
index f05aaf3..0e1d726 100644
--- a/ld/testsuite/ld-powerpc/tlsexe32.t
+++ b/ld/testsuite/ld-powerpc/tlsexe32.t
@@ -7,5 +7,5 @@
.*: +file format elf32-powerpc
Contents of section \.tdata:
- 18102fc 12345678 23456789 3456789a 456789ab .*
- 181030c 56789abc 6789abcd 789abcde .*
+ 18102d4 12345678 23456789 3456789a 456789ab .*
+ 18102e4 56789abc 6789abcd 789abcde .*
diff --git a/ld/testsuite/ld-powerpc/tlsso32.d b/ld/testsuite/ld-powerpc/tlsso32.d
index 5e23c28..02e5d08 100644
--- a/ld/testsuite/ld-powerpc/tlsso32.d
+++ b/ld/testsuite/ld-powerpc/tlsso32.d
@@ -8,38 +8,38 @@
Disassembly of section \.text:
-0+498 <_start>:
- 498: 38 7f 00 1c addi r3,r31,28
- 49c: 48 00 00 01 bl 49c .*
- 4a0: 38 7f 00 0c addi r3,r31,12
- 4a4: 48 00 00 01 bl 4a4 .*
- 4a8: 38 7f 00 24 addi r3,r31,36
- 4ac: 48 01 01 95 bl 10640 .*
- 4b0: 38 7f 00 0c addi r3,r31,12
- 4b4: 48 01 01 8d bl 10640 .*
- 4b8: 39 23 80 20 addi r9,r3,-32736
- 4bc: 3d 23 00 00 addis r9,r3,0
- 4c0: 81 49 80 24 lwz r10,-32732\(r9\)
- 4c4: 81 3f 00 2c lwz r9,44\(r31\)
- 4c8: 7d 49 12 2e lhzx r10,r9,r2
- 4cc: 89 42 00 00 lbz r10,0\(r2\)
- 4d0: 3d 22 00 00 addis r9,r2,0
- 4d4: 99 49 00 00 stb r10,0\(r9\)
- 4d8: 38 7e 00 14 addi r3,r30,20
- 4dc: 48 00 00 01 bl 4dc .*
- 4e0: 38 7e 00 0c addi r3,r30,12
- 4e4: 48 00 00 01 bl 4e4 .*
- 4e8: 91 43 80 04 stw r10,-32764\(r3\)
- 4ec: 3d 23 00 00 addis r9,r3,0
- 4f0: 91 49 80 08 stw r10,-32760\(r9\)
- 4f4: 81 3e 00 2c lwz r9,44\(r30\)
- 4f8: 7d 49 13 2e sthx r10,r9,r2
- 4fc: a1 42 00 00 lhz r10,0\(r2\)
- 500: 3d 22 00 00 addis r9,r2,0
- 504: a9 49 00 00 lha r10,0\(r9\)
+0+46c <_start>:
+ 46c: 38 7f 00 1c addi r3,r31,28
+ 470: 48 00 00 01 bl 470 .*
+ 474: 38 7f 00 0c addi r3,r31,12
+ 478: 48 00 00 01 bl 478 .*
+ 47c: 38 7f 00 24 addi r3,r31,36
+ 480: 48 01 01 95 bl 10614 .*
+ 484: 38 7f 00 0c addi r3,r31,12
+ 488: 48 01 01 8d bl 10614 .*
+ 48c: 39 23 80 20 addi r9,r3,-32736
+ 490: 3d 23 00 00 addis r9,r3,0
+ 494: 81 49 80 24 lwz r10,-32732\(r9\)
+ 498: 81 3f 00 2c lwz r9,44\(r31\)
+ 49c: 7d 49 12 2e lhzx r10,r9,r2
+ 4a0: 89 42 00 00 lbz r10,0\(r2\)
+ 4a4: 3d 22 00 00 addis r9,r2,0
+ 4a8: 99 49 00 00 stb r10,0\(r9\)
+ 4ac: 38 7e 00 14 addi r3,r30,20
+ 4b0: 48 00 00 01 bl 4b0 .*
+ 4b4: 38 7e 00 0c addi r3,r30,12
+ 4b8: 48 00 00 01 bl 4b8 .*
+ 4bc: 91 43 80 04 stw r10,-32764\(r3\)
+ 4c0: 3d 23 00 00 addis r9,r3,0
+ 4c4: 91 49 80 08 stw r10,-32760\(r9\)
+ 4c8: 81 3e 00 2c lwz r9,44\(r30\)
+ 4cc: 7d 49 13 2e sthx r10,r9,r2
+ 4d0: a1 42 00 00 lhz r10,0\(r2\)
+ 4d4: 3d 22 00 00 addis r9,r2,0
+ 4d8: a9 49 00 00 lha r10,0\(r9\)
Disassembly of section \.got:
-000105c4 <\.got>:
- 105c4: 4e 80 00 21 blrl
- 105c8: 00 01 05 24 \.long 0x10524
+00010598 <\.got>:
+ 10598: 4e 80 00 21 blrl
+ 1059c: 00 01 04 f8 \.long 0x104f8
\.\.\.
diff --git a/ld/testsuite/ld-powerpc/tlsso32.g b/ld/testsuite/ld-powerpc/tlsso32.g
index 7e1a294..9639d4f 100644
--- a/ld/testsuite/ld-powerpc/tlsso32.g
+++ b/ld/testsuite/ld-powerpc/tlsso32.g
@@ -7,7 +7,7 @@
.*: +file format elf32-powerpc
Contents of section \.got:
- 105c4 4e800021 00010524 00000000 00000000 .*
- 105d4 00000000 00000000 00000000 00000000 .*
- 105e4 00000000 00000000 00000000 00000000 .*
- 105f4 00000000 .*
+ 10598 4e800021 000104f8 00000000 00000000 .*
+ 105a8 00000000 00000000 00000000 00000000 .*
+ 105b8 00000000 00000000 00000000 00000000 .*
+ 105c8 00000000 .*
diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r
index 4ca2fcf..e2b3543 100644
--- a/ld/testsuite/ld-powerpc/tlsso32.r
+++ b/ld/testsuite/ld-powerpc/tlsso32.r
@@ -14,12 +14,12 @@ Section Headers:
+\[ 3\] \.dynstr +.*
+\[ 4\] \.rela\.dyn +.*
+\[ 5\] \.rela\.plt +.*
- +\[ 6\] \.text +PROGBITS +0+498 0+498 0+70 0+ +AX +0 +0 +1
- +\[ 7\] \.tdata +PROGBITS +0+10508 0+508 0+1c 0+ WAT +0 +0 +4
- +\[ 8\] \.tbss +NOBITS +0+10524 0+524 0+1c 0+ WAT +0 +0 +4
- +\[ 9\] \.dynamic +DYNAMIC +0+10524 0+524 0+a0 08 +WA +3 +0 +4
- +\[10\] \.data +PROGBITS +0+105c4 0+5c4 0+ 0+ +WA +0 +0 +1
- +\[11\] \.got +PROGBITS +0+105c4 0+5c4 0+34 04 WAX +0 +0 +4
+ +\[ 6\] \.text +PROGBITS +0+46c 0+46c 0+70 0+ +AX +0 +0 +1
+ +\[ 7\] \.tdata +PROGBITS +0+104dc 0+4dc 0+1c 0+ WAT +0 +0 +4
+ +\[ 8\] \.tbss +NOBITS +0+104f8 0+4f8 0+1c 0+ WAT +0 +0 +4
+ +\[ 9\] \.dynamic +DYNAMIC +0+104f8 0+4f8 0+a0 08 +WA +3 +0 +4
+ +\[10\] \.data +PROGBITS +0+10598 0+598 0+ 0+ +WA +0 +0 +1
+ +\[11\] \.got +PROGBITS +0+10598 0+598 0+34 04 WAX +0 +0 +4
+\[12\] \.sdata2 +.*
+\[13\] \.sdata +.*
+\[14\] \.sbss +.*
@@ -36,10 +36,10 @@ There are 4 program headers.*
Program Headers:
+Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align
- +LOAD +0x0+ 0x0+ 0x0+ 0x0+508 0x0+508 R E 0x10000
- +LOAD +0x0+508 0x0+10508 0x0+10508 0x0+f0 0x0+144 RWE 0x10000
- +DYNAMIC +0x0+524 0x0+10524 0x0+10524 0x0+a0 0x0+a0 RW +0x4
- +TLS +0x0+508 0x0+10508 0x0+10508 0x0+1c 0x0+38 R +0x4
+ +LOAD +0x0+ 0x0+ 0x0+ 0x0+4dc 0x0+4dc R E 0x10000
+ +LOAD +0x0+4dc 0x0+104dc 0x0+104dc 0x0+f0 0x0+144 RWE 0x10000
+ +DYNAMIC +0x0+4f8 0x0+104f8 0x0+104f8 0x0+a0 0x0+a0 RW +0x4
+ +TLS +0x0+4dc 0x0+104dc 0x0+104dc 0x0+1c 0x0+38 R +0x4
Section to Segment mapping:
+Segment Sections\.\.\.
@@ -50,41 +50,41 @@ Program Headers:
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 18 entries:
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
-0+49c +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
-0+4a4 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
-0+4dc +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
-0+4e4 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
-0+4ce +0+b45 R_PPC_TPREL16 +0+30 +le0 \+ 0
-0+4d2 +0+e48 R_PPC_TPREL16_HA +0+34 +le1 \+ 0
-0+4d6 +0+e46 R_PPC_TPREL16_LO +0+34 +le1 \+ 0
-0+4fe +0+245 R_PPC_TPREL16 +0+10508 +\.tdata \+ 1051c
-0+502 +0+248 R_PPC_TPREL16_HA +0+10508 +\.tdata \+ 10520
-0+506 +0+246 R_PPC_TPREL16_LO +0+10508 +\.tdata \+ 10520
-0+105d4 +0+44 R_PPC_DTPMOD32 +0+
-0+105dc +0+44 R_PPC_DTPMOD32 +0+
-0+105e0 +0+4e R_PPC_DTPREL32 +0+
-0+105e4 +0+a44 R_PPC_DTPMOD32 +0+ +gd \+ 0
-0+105e8 +0+a4e R_PPC_DTPREL32 +0+ +gd \+ 0
-0+105ec +0+1944 R_PPC_DTPMOD32 +0+1c +gd0 \+ 0
-0+105f0 +0+194e R_PPC_DTPREL32 +0+1c +gd0 \+ 0
-0+105f4 +0+1a49 R_PPC_TPREL32 +0+2c +ie0 \+ 0
+0+470 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
+0+478 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
+0+4b0 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
+0+4b8 +0+c0a R_PPC_REL24 +0+ +__tls_get_addr \+ 0
+0+4a2 +0+b45 R_PPC_TPREL16 +0+30 +le0 \+ 0
+0+4a6 +0+e48 R_PPC_TPREL16_HA +0+34 +le1 \+ 0
+0+4aa +0+e46 R_PPC_TPREL16_LO +0+34 +le1 \+ 0
+0+4d2 +0+245 R_PPC_TPREL16 +0+104dc +\.tdata \+ 104f0
+0+4d6 +0+248 R_PPC_TPREL16_HA +0+104dc +\.tdata \+ 104f4
+0+4da +0+246 R_PPC_TPREL16_LO +0+104dc +\.tdata \+ 104f4
+0+105a8 +0+44 R_PPC_DTPMOD32 +0+
+0+105b0 +0+44 R_PPC_DTPMOD32 +0+
+0+105b4 +0+4e R_PPC_DTPREL32 +0+
+0+105b8 +0+a44 R_PPC_DTPMOD32 +0+ +gd \+ 0
+0+105bc +0+a4e R_PPC_DTPREL32 +0+ +gd \+ 0
+0+105c0 +0+1844 R_PPC_DTPMOD32 +0+1c +gd0 \+ 0
+0+105c4 +0+184e R_PPC_DTPREL32 +0+1c +gd0 \+ 0
+0+105c8 +0+1949 R_PPC_TPREL32 +0+2c +ie0 \+ 0
Relocation section '\.rela\.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
-0+10640 +0+c15 R_PPC_JMP_SLOT +0+ +__tls_get_addr \+ 0
+0+10614 +0+c15 R_PPC_JMP_SLOT +0+ +__tls_get_addr \+ 0
-Symbol table '\.dynsym' contains 28 entries:
+Symbol table '\.dynsym' contains 27 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE +LOCAL +DEFAULT +UND
- +[0-9]+: 0+498 +0 SECTION LOCAL +DEFAULT +6
- +[0-9]+: 0+10508 +0 SECTION LOCAL +DEFAULT +7
- +[0-9]+: 0+10524 +0 SECTION LOCAL +DEFAULT +8
- +[0-9]+: 0+105c4 +0 SECTION LOCAL +DEFAULT +10
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +12
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +13
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +14
- +[0-9]+: 0+1064c +0 SECTION LOCAL +DEFAULT +16
- +[0-9]+: 0+10524 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+46c +0 SECTION LOCAL +DEFAULT +6
+ +[0-9]+: 0+104dc +0 SECTION LOCAL +DEFAULT +7
+ +[0-9]+: 0+104f8 +0 SECTION LOCAL +DEFAULT +8
+ +[0-9]+: 0+10598 +0 SECTION LOCAL +DEFAULT +10
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +12
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +13
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +14
+ +[0-9]+: 0+10620 +0 SECTION LOCAL +DEFAULT +16
+ +[0-9]+: 0+104f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd
+[0-9]+: 0+30 +0 TLS +GLOBAL DEFAULT +8 le0
+[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
@@ -98,7 +98,6 @@ Symbol table '\.dynsym' contains 28 entries:
+[0-9]+: 0+24 +0 TLS +GLOBAL DEFAULT +8 ld1
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+105c8 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +8 gd0
+[0-9]+: 0+2c +0 TLS +GLOBAL DEFAULT +8 ie0
@@ -112,17 +111,17 @@ Symbol table '\.symtab' contains 46 entries:
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +3
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +4
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +5
- +[0-9]+: 0+498 +0 SECTION LOCAL +DEFAULT +6
- +[0-9]+: 0+10508 +0 SECTION LOCAL +DEFAULT +7
- +[0-9]+: 0+10524 +0 SECTION LOCAL +DEFAULT +8
+ +[0-9]+: 0+46c +0 SECTION LOCAL +DEFAULT +6
+ +[0-9]+: 0+104dc +0 SECTION LOCAL +DEFAULT +7
+ +[0-9]+: 0+104f8 +0 SECTION LOCAL +DEFAULT +8
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +9
- +[0-9]+: 0+105c4 +0 SECTION LOCAL +DEFAULT +10
+ +[0-9]+: 0+10598 +0 SECTION LOCAL +DEFAULT +10
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +11
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +12
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +13
- +[0-9]+: 0+105f8 +0 SECTION LOCAL +DEFAULT +14
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +12
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +13
+ +[0-9]+: 0+105cc +0 SECTION LOCAL +DEFAULT +14
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +15
- +[0-9]+: 0+1064c +0 SECTION LOCAL +DEFAULT +16
+ +[0-9]+: 0+10620 +0 SECTION LOCAL +DEFAULT +16
+[0-9]+: 0+ +0 SECTION LOCAL +DEFAULT +17
+[0-9]+: 0+ +0 SECTION LOCAL +DEFAULT +18
+[0-9]+: 0+ +0 SECTION LOCAL +DEFAULT +19
@@ -133,7 +132,8 @@ Symbol table '\.symtab' contains 46 entries:
+[0-9]+: 0+10 +0 TLS +LOCAL +DEFAULT +7 ie4
+[0-9]+: 0+14 +0 TLS +LOCAL +DEFAULT +7 le4
+[0-9]+: 0+18 +0 TLS +LOCAL +DEFAULT +7 le5
- +[0-9]+: 0+10524 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+ +[0-9]+: 0+1059c +0 OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+104f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT +UND gd
+[0-9]+: 0+30 +0 TLS +GLOBAL DEFAULT +8 le0
+[0-9]+: 0+ +0 NOTYPE +GLOBAL DEFAULT +UND __tls_get_addr
@@ -147,7 +147,6 @@ Symbol table '\.symtab' contains 46 entries:
+[0-9]+: 0+24 +0 TLS +GLOBAL DEFAULT +8 ld1
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+105c8 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +8 gd0
+[0-9]+: 0+2c +0 TLS +GLOBAL DEFAULT +8 ie0
diff --git a/ld/testsuite/ld-powerpc/tlsso32.t b/ld/testsuite/ld-powerpc/tlsso32.t
index a1594db..66a38d5 100644
--- a/ld/testsuite/ld-powerpc/tlsso32.t
+++ b/ld/testsuite/ld-powerpc/tlsso32.t
@@ -7,5 +7,5 @@
.*: +file format elf32-powerpc
Contents of section \.tdata:
- 10508 12345678 23456789 3456789a 456789ab .*
- 10518 56789abc 6789abcd 789abcde .*
+ 104dc 12345678 23456789 3456789a 456789ab .*
+ 104ec 56789abc 6789abcd 789abcde .*
diff --git a/ld/testsuite/ld-s390/tlsbin.dd b/ld/testsuite/ld-s390/tlsbin.dd
index 82b1b87..6e49b1b 100644
--- a/ld/testsuite/ld-s390/tlsbin.dd
+++ b/ld/testsuite/ld-s390/tlsbin.dd
@@ -151,7 +151,7 @@ Disassembly of section .text:
+[0-9a-f]+: 90 6e f0 18 stm %r6,%r14,24\(%r15\)
+[0-9a-f]+: a7 d5 00 0c bras %r13,[0-9a-f]+ <_start\+0x1c>
# sG6@indntpoff
- +[0-9a-f]+: 00 40 15 e4 .long 0x004015e4
+ +[0-9a-f]+: 00 40 15 a4 .long 0x004015a4
# bg6@indntpoff
+[0-9a-f]+: ff ff ff d4 .long 0xffffffd4
# bl6@indntpoff
diff --git a/ld/testsuite/ld-s390/tlsbin.rd b/ld/testsuite/ld-s390/tlsbin.rd
index 562cdc1..3cf093b 100644
--- a/ld/testsuite/ld-s390/tlsbin.rd
+++ b/ld/testsuite/ld-s390/tlsbin.rd
@@ -18,10 +18,10 @@ Section Headers:
\[ 6\] .rela.plt +.*
\[ 7\] .plt +.*
\[ 8\] .text +PROGBITS +.*
- \[ 9\] .tdata +PROGBITS +0+4014c0 0+4c0 0+60 00 WAT +0 +0 +32
- \[10\] .tbss +NOBITS +0+401520 0+520 0+40 00 WAT +0 +0 +1
- \[11\] .dynamic +DYNAMIC +0+401520 0+520 0+a0 08 +WA +4 +0 +4
- \[12\] .got +PROGBITS +0+4015c0 0+5c0 0+2c 04 +WA +0 +0 +4
+ \[ 9\] .tdata +PROGBITS +0+401480 0+480 0+60 00 WAT +0 +0 +32
+ \[10\] .tbss +NOBITS +0+4014e0 0+4e0 0+40 00 WAT +0 +0 +1
+ \[11\] .dynamic +DYNAMIC +0+4014e0 0+4e0 0+a0 08 +WA +4 +0 +4
+ \[12\] .got +PROGBITS +0+401580 0+580 0+2c 04 +WA +0 +0 +4
\[13\] .data +.*
\[14\] .bss +.*
\[15\] .shstrtab +.*
@@ -42,9 +42,9 @@ Program Headers:
INTERP +0x0+f4 0x0+4000f4 0x0+4000f4 0x0+11 0x0+11 R +0x1
.*Requesting program interpreter.*
LOAD +0x0+ 0x0+400000 0x0+400000 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x1000
- LOAD +0x0+4c0 0x0+4014c0 0x0+4014c0 0x0+12c 0x0+12c RW 0x1000
- DYNAMIC +0x0+520 0x0+401520 0x0+401520 0x0+a0 0x0+a0 RW 0x4
- TLS +0x0+4c0 0x0+4014c0 0x0+4014c0 0x0+60 0x0+a0 R +0x20
+ LOAD +0x0+480 0x0+401480 0x0+401480 0x0+12c 0x0+12c RW 0x1000
+ DYNAMIC +0x0+4e0 0x0+4014e0 0x0+4014e0 0x0+a0 0x0+a0 RW 0x4
+ TLS +0x0+480 0x0+401480 0x0+401480 0x0+60 0x0+a0 R +0x20
Section to Segment mapping:
Segment Sections...
@@ -55,7 +55,7 @@ Program Headers:
04 +.dynamic *
05 +.tdata .tbss *
-Relocation section '.rela.dyn' at offset 0x268 contains 4 entries:
+Relocation section '.rela.dyn' at offset 0x23c contains 4 entries:
Offset +Info +Type +Sym.Value Sym. Name \+ Addend
[0-9a-f]+ 0+138 R_390_TLS_TPOFF +0+ +sG3 \+ 0
[0-9a-f]+ 0+338 R_390_TLS_TPOFF +0+ +sG2 \+ 0
@@ -64,9 +64,9 @@ Relocation section '.rela.dyn' at offset 0x268 contains 4 entries:
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym.Value Sym. Name \+ Addend
-[0-9a-f]+ 0+40b R_390_JMP_SLOT +0+40+2c4 +__tls_get_offset \+ 0
+[0-9a-f]+ 0+40b R_390_JMP_SLOT +0+40+298 +__tls_get_offset \+ 0
-Symbol table '.dynsym' contains 11 entries:
+Symbol table '.dynsym' contains 10 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG3
@@ -77,7 +77,6 @@ Symbol table '.dynsym' contains 11 entries:
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG6
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG1
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
Symbol table '.symtab' contains 70 entries:
@@ -145,7 +144,7 @@ Symbol table '.symtab' contains 70 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +9 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +9 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL HIDDEN 12 _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+44 +0 TLS +GLOBAL HIDDEN +9 sh2
+[0-9]+: 0+54 +0 TLS +GLOBAL HIDDEN +9 sh6
diff --git a/ld/testsuite/ld-s390/tlspic.rd b/ld/testsuite/ld-s390/tlspic.rd
index 2a7640f..4a9ed17 100644
--- a/ld/testsuite/ld-s390/tlspic.rd
+++ b/ld/testsuite/ld-s390/tlspic.rd
@@ -17,10 +17,10 @@ Section Headers:
\[ 5\] .rela.plt +.*
\[ 6\] .plt +.*
\[ 7\] .text +PROGBITS +.*
- \[ 8\] .tdata +PROGBITS +0+1600 0+600 0+60 00 WAT 0 +0 32
- \[ 9\] .tbss +NOBITS +0+1660 0+660 0+20 00 WAT 0 +0 1
- \[10\] .dynamic +DYNAMIC +0+1660 0+660 0+98 08 WA 3 +0 4
- \[11\] .got +PROGBITS +0+16f8 0+6f8 0+58 04 WA 0 +0 4
+ \[ 8\] .tdata +PROGBITS +0+15c0 0+5c0 0+60 00 WAT 0 +0 32
+ \[ 9\] .tbss +NOBITS +0+1620 0+620 0+20 00 WAT 0 +0 1
+ \[10\] .dynamic +DYNAMIC +0+1620 0+620 0+98 08 WA 3 +0 4
+ \[11\] .got +PROGBITS +0+16b8 0+6b8 0+58 04 WA 0 +0 4
\[12\] .data +.*
\[13\] .bss +.*
\[14\] .shstrtab +.*
@@ -38,9 +38,9 @@ There are 4 program headers, starting at offset [0-9]+
Program Headers:
Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz Flg Align
LOAD +0x0+ 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x1000
- LOAD +0x0+600 0x0+1600 0x0+1600 0x00150 0x00150 RW 0x1000
- DYNAMIC +0x0+660 0x0+1660 0x0+1660 0x0+98 0x0+98 RW 0x4
- TLS +0x0+600 0x0+1600 0x0+1600 0x0+60 0x0+80 R +0x20
+ LOAD +0x0+5c0 0x0+15c0 0x0+15c0 0x00150 0x00150 RW 0x1000
+ DYNAMIC +0x0+620 0x0+1620 0x0+1620 0x0+98 0x0+98 RW 0x4
+ TLS +0x0+5c0 0x0+15c0 0x0+15c0 0x0+60 0x0+80 R +0x20
Section to Segment mapping:
Segment Sections...
@@ -70,7 +70,7 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym.Value Sym. Name \+ Addend
[0-9a-f]+ 0+b0b R_390_JMP_SLOT +0+ +__tls_get_offset \+ 0
-Symbol table '.dynsym' contains 21 entries:
+Symbol table '.dynsym' contains 20 entries:
+Num: +Value Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +7
@@ -91,7 +91,6 @@ Symbol table '.dynsym' contains 21 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
Symbol table '.symtab' contains 56 entries:
@@ -135,6 +134,7 @@ Symbol table '.symtab' contains 56 entries:
+[0-9]+: 0+74 +0 TLS +LOCAL HIDDEN +9 sH6
+[0-9]+: 0+7c +0 TLS +LOCAL HIDDEN +9 sH8
+[0-9]+: 0+40 +0 TLS +LOCAL HIDDEN +8 sh1
+ +[0-9]+: [0-9a-f]+ +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+44 +0 TLS +LOCAL HIDDEN +8 sh2
+[0-9]+: 0+54 +0 TLS +LOCAL HIDDEN +8 sh6
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +8 sg8
@@ -150,5 +150,4 @@ Symbol table '.symtab' contains 56 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: [0-9a-f]+ +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
diff --git a/ld/testsuite/ld-sparc/tlssunbin32.rd b/ld/testsuite/ld-sparc/tlssunbin32.rd
index 242b1a3..f0dfd48 100644
--- a/ld/testsuite/ld-sparc/tlssunbin32.rd
+++ b/ld/testsuite/ld-sparc/tlssunbin32.rd
@@ -98,37 +98,37 @@ Symbol table '.symtab' contains 70 entries:
+30: 0+1094 +0 TLS +LOCAL +DEFAULT +8 bl6
+31: 0+1098 +0 TLS +LOCAL +DEFAULT +8 bl7
+32: 0+109c +0 TLS +LOCAL +DEFAULT +8 bl8
- +33: 0+23278 +0 OBJECT +LOCAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_
- +34: 0+101c +0 TLS +GLOBAL DEFAULT +7 sg8
- +35: 0+107c +0 TLS +GLOBAL DEFAULT +8 bg8
- +36: 0+1074 +0 TLS +GLOBAL DEFAULT +8 bg6
- +37: 0+ +0 TLS +GLOBAL DEFAULT +UND sG5
- +38: 0+1068 +0 TLS +GLOBAL DEFAULT +8 bg3
- +39: 0+231f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
- +40: 0+1008 +0 TLS +GLOBAL DEFAULT +7 sg3
- +41: 0+1048 +0 TLS +GLOBAL HIDDEN +7 sh3
- +42: 0+ +0 TLS +GLOBAL DEFAULT +UND sG2
- +43: 0+100c +0 TLS +GLOBAL DEFAULT +7 sg4
- +44: 0+1010 +0 TLS +GLOBAL DEFAULT +7 sg5
- +45: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
- +46: 0+1070 +0 TLS +GLOBAL DEFAULT +8 bg5
- +47: 0+ +0 FUNC +GLOBAL DEFAULT +UND __tls_get_addr
- +48: 0+1058 +0 TLS +GLOBAL HIDDEN +7 sh7
- +49: 0+105c +0 TLS +GLOBAL HIDDEN +7 sh8
- +50: 0+ +0 TLS +GLOBAL DEFAULT +7 sg1
- +51: 0+12000 +0 FUNC +GLOBAL DEFAULT +6 _start
- +52: 0+104c +0 TLS +GLOBAL HIDDEN +7 sh4
- +53: 0+1078 +0 TLS +GLOBAL DEFAULT +8 bg7
- +54: 0+1050 +0 TLS +GLOBAL HIDDEN +7 sh5
- +55: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
- +56: 0+ +0 TLS +GLOBAL DEFAULT +UND sG6
- +57: 0+11008 +0 FUNC +GLOBAL DEFAULT +6 fn2
- +58: 0+1004 +0 TLS +GLOBAL DEFAULT +7 sg2
- +59: 0+ +0 TLS +GLOBAL DEFAULT +UND sG1
- +60: 0+1040 +0 TLS +GLOBAL HIDDEN +7 sh1
- +61: 0+1014 +0 TLS +GLOBAL DEFAULT +7 sg6
- +62: 0+1018 +0 TLS +GLOBAL DEFAULT +7 sg7
- +63: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
+ +33: 0+101c +0 TLS +GLOBAL DEFAULT +7 sg8
+ +34: 0+107c +0 TLS +GLOBAL DEFAULT +8 bg8
+ +35: 0+1074 +0 TLS +GLOBAL DEFAULT +8 bg6
+ +36: 0+ +0 TLS +GLOBAL DEFAULT +UND sG5
+ +37: 0+1068 +0 TLS +GLOBAL DEFAULT +8 bg3
+ +38: 0+231f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC
+ +39: 0+1008 +0 TLS +GLOBAL DEFAULT +7 sg3
+ +40: 0+1048 +0 TLS +GLOBAL HIDDEN +7 sh3
+ +41: 0+ +0 TLS +GLOBAL DEFAULT +UND sG2
+ +42: 0+100c +0 TLS +GLOBAL DEFAULT +7 sg4
+ +43: 0+1010 +0 TLS +GLOBAL DEFAULT +7 sg5
+ +44: [0-9a-f]+ +0 OBJECT +GLOBAL DEFAULT +ABS _PROCEDURE_LINKAGE_TABLE_
+ +45: 0+1070 +0 TLS +GLOBAL DEFAULT +8 bg5
+ +46: 0+ +0 FUNC +GLOBAL DEFAULT +UND __tls_get_addr
+ +47: 0+1058 +0 TLS +GLOBAL HIDDEN +7 sh7
+ +48: 0+105c +0 TLS +GLOBAL HIDDEN +7 sh8
+ +49: 0+ +0 TLS +GLOBAL DEFAULT +7 sg1
+ +50: 0+12000 +0 FUNC +GLOBAL DEFAULT +6 _start
+ +51: 0+104c +0 TLS +GLOBAL HIDDEN +7 sh4
+ +52: 0+1078 +0 TLS +GLOBAL DEFAULT +8 bg7
+ +53: 0+1050 +0 TLS +GLOBAL HIDDEN +7 sh5
+ +54: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS __bss_start
+ +55: 0+ +0 TLS +GLOBAL DEFAULT +UND sG6
+ +56: 0+11008 +0 FUNC +GLOBAL DEFAULT +6 fn2
+ +57: 0+1004 +0 TLS +GLOBAL DEFAULT +7 sg2
+ +58: 0+ +0 TLS +GLOBAL DEFAULT +UND sG1
+ +59: 0+1040 +0 TLS +GLOBAL HIDDEN +7 sh1
+ +60: 0+1014 +0 TLS +GLOBAL DEFAULT +7 sg6
+ +61: 0+1018 +0 TLS +GLOBAL DEFAULT +7 sg7
+ +62: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
+ +63: 0+23278 +0 OBJECT +GLOBAL +HIDDEN +10 _GLOBAL_OFFSET_TABLE_
+64: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
+65: 0+1044 +0 TLS +GLOBAL HIDDEN +7 sh2
+66: 0+1054 +0 TLS +GLOBAL HIDDEN +7 sh6
diff --git a/ld/testsuite/ld-sparc/tlssunpic32.rd b/ld/testsuite/ld-sparc/tlssunpic32.rd
index 29c2b89..7fca80e 100644
--- a/ld/testsuite/ld-sparc/tlssunpic32.rd
+++ b/ld/testsuite/ld-sparc/tlssunpic32.rd
@@ -61,7 +61,7 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend
0+12174 +0+c15 R_SPARC_JMP_SLOT +0+ +__tls_get_addr \+ 0
-Symbol table '.dynsym' contains 22 entries:
+Symbol table '.dynsym' contains 21 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+0: 0+ +0 NOTYPE +LOCAL +DEFAULT +UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL +DEFAULT +6 *
@@ -83,7 +83,6 @@ Symbol table '.dynsym' contains 22 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +7 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +7 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+120f8 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
Symbol table '.symtab' contains 57 entries:
@@ -127,6 +126,7 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+74 +0 TLS +LOCAL +HIDDEN +8 sH6
+[0-9]+: 0+7c +0 TLS +LOCAL +HIDDEN +8 sH8
+[0-9]+: 0+40 +0 TLS +LOCAL +HIDDEN +7 sh1
+ +[0-9]+: 0+120f8 +0 OBJECT +LOCAL HIDDEN +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+44 +0 TLS +LOCAL +HIDDEN +7 sh2
+[0-9]+: 0+54 +0 TLS +LOCAL +HIDDEN +7 sh6
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +7 sg8
@@ -143,5 +143,4 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +7 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +7 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _edata
- +[0-9]+: 0+120f8 +0 OBJECT +GLOBAL DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE +GLOBAL DEFAULT +ABS _end
diff --git a/ld/testsuite/ld-x86-64/tlsbin.rd b/ld/testsuite/ld-x86-64/tlsbin.rd
index f86422b..ccebb79 100644
--- a/ld/testsuite/ld-x86-64/tlsbin.rd
+++ b/ld/testsuite/ld-x86-64/tlsbin.rd
@@ -56,18 +56,18 @@ Program Headers:
04 +.dynamic *
05 +.tdata .tbss *
-Relocation section '.rela.dyn' at offset 0x358 contains 4 entries:
+Relocation section '.rela.dyn' at offset 0x328 contains 4 entries:
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
0+5013d0 0+100000012 R_X86_64_TPOFF64 +0+ sG5 \+ 0
0+5013d8 0+300000012 R_X86_64_TPOFF64 +0+ sG2 \+ 0
0+5013e0 0+600000012 R_X86_64_TPOFF64 +0+ sG6 \+ 0
0+5013e8 0+700000012 R_X86_64_TPOFF64 +0+ sG1 \+ 0
-Relocation section '.rela.plt' at offset 0x3b8 contains 1 entries:
+Relocation section '.rela.plt' at offset 0x388 contains 1 entries:
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
0+[0-9a-f]+ 0+400000007 R_X86_64_JUMP_SLOT +0+[0-9a-f]+ __tls_get_addr \+ 0
-Symbol table '.dynsym' contains 11 entries:
+Symbol table '.dynsym' contains 10 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG5
@@ -78,7 +78,6 @@ Symbol table '.dynsym' contains 11 entries:
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG6
+[0-9]+: 0+ +0 TLS +GLOBAL DEFAULT UND sG1
+[0-9]+: 0+[0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+5013f0 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+[0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
Symbol table '.symtab' contains 71 entries:
@@ -147,7 +146,7 @@ Symbol table '.symtab' contains 71 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +9 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +9 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+5013f0 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+ +[0-9]+: 0+5013f0 +0 OBJECT GLOBAL HIDDEN 13 _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
+[0-9]+: 0+44 +0 TLS +GLOBAL HIDDEN +9 sh2
+[0-9]+: 0+54 +0 TLS +GLOBAL HIDDEN +9 sh6
diff --git a/ld/testsuite/ld-x86-64/tlspic.dd b/ld/testsuite/ld-x86-64/tlspic.dd
index f5139dc..e49ad4d 100644
--- a/ld/testsuite/ld-x86-64/tlspic.dd
+++ b/ld/testsuite/ld-x86-64/tlspic.dd
@@ -22,7 +22,7 @@ Disassembly of section .text:
# -> R_X86_64_DTPMOD64 sg1
+1010: 66[ ]+data16
+1011: 66[ ]+data16
- +1012: 48 e8 88 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
+ +1012: 48 e8 58 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+1018: 90[ ]+nop *
+1019: 90[ ]+nop *
@@ -43,7 +43,7 @@ Disassembly of section .text:
# -> R_X86_64_DTPMOD64 [0 0x2000000000000000]
+1038: 66[ ]+data16
+1039: 66[ ]+data16
- +103a: 48 e8 60 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
+ +103a: 48 e8 30 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+1040: 90[ ]+nop *
+1041: 90[ ]+nop *
@@ -64,7 +64,7 @@ Disassembly of section .text:
# -> R_X86_64_DTPMOD64 [0 0x4000000000000000]
+1060: 66[ ]+data16
+1061: 66[ ]+data16
- +1062: 48 e8 38 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
+ +1062: 48 e8 08 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+1068: 90[ ]+nop *
+1069: 90[ ]+nop *
@@ -85,7 +85,7 @@ Disassembly of section .text:
# -> R_X86_64_DTPMOD64 [0 0x6000000000000000]
+1088: 66[ ]+data16
+1089: 66[ ]+data16
- +108a: 48 e8 10 f5 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
+ +108a: 48 e8 e0 f4 ff ff[ ]+rex64 callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+1090: 90[ ]+nop *
+1091: 90[ ]+nop *
@@ -103,7 +103,7 @@ Disassembly of section .text:
# LD
+10a8: 48 8d 3d b1 02 10 00[ ]+lea 1049265\(%rip\),%rdi +# 101360 <.*>
# -> R_X86_64_DTPMOD64 [0 0x000000000000000]
- +10af: e8 ec f4 ff ff[ ]+callq [0-9a-f]+ <.*>
+ +10af: e8 bc f4 ff ff[ ]+callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+10b4: 90[ ]+nop *
+10b5: 90[ ]+nop *
@@ -118,7 +118,7 @@ Disassembly of section .text:
# LD against hidden and local variables
+10ca: 48 8d 3d 8f 02 10 00[ ]+lea 1049231\(%rip\),%rdi +# 101360 <.*>
# -> R_X86_64_DTPMOD64 [0 0x000000000000000]
- +10d1: e8 ca f4 ff ff[ ]+callq [0-9a-f]+ <.*>
+ +10d1: e8 9a f4 ff ff[ ]+callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+10d6: 90[ ]+nop *
+10d7: 90[ ]+nop *
@@ -133,7 +133,7 @@ Disassembly of section .text:
# LD against hidden but not local variables
+10ec: 48 8d 3d 6d 02 10 00[ ]+lea 1049197\(%rip\),%rdi +# 101360 <.*>
# -> R_X86_64_DTPMOD64 [0 0x000000000000000]
- +10f3: e8 a8 f4 ff ff[ ]+callq [0-9a-f]+ <.*>
+ +10f3: e8 78 f4 ff ff[ ]+callq [0-9a-f]+ <.*>
# -> R_X86_64_JUMP_SLOT __tls_get_addr
+10f8: 90[ ]+nop *
+10f9: 90[ ]+nop *
diff --git a/ld/testsuite/ld-x86-64/tlspic.rd b/ld/testsuite/ld-x86-64/tlspic.rd
index fff48cd..d946295 100644
--- a/ld/testsuite/ld-x86-64/tlspic.rd
+++ b/ld/testsuite/ld-x86-64/tlspic.rd
@@ -71,7 +71,7 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
+Offset +Info +Type +Symbol's Value Symbol's Name \+ Addend
0+[0-9a-f]+ 0+b00000007 R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0
-Symbol table '.dynsym' contains 21 entries:
+Symbol table '.dynsym' contains 20 entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
+[0-9]+: 0+ +0 NOTYPE LOCAL DEFAULT UND *
+[0-9]+: [0-9a-f]+ +0 SECTION LOCAL DEFAULT +7 *
@@ -92,7 +92,6 @@ Symbol table '.dynsym' contains 21 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+1013d0 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end
Symbol table '.symtab' contains 57 entries:
@@ -137,6 +136,7 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+74 +0 TLS +LOCAL HIDDEN +9 sH6
+[0-9]+: 0+7c +0 TLS +LOCAL HIDDEN +9 sH8
+[0-9]+: 0+40 +0 TLS +LOCAL HIDDEN +8 sh1
+ +[0-9]+: 0+1013d0 +0 OBJECT LOCAL HIDDEN ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: 0+44 +0 TLS +LOCAL HIDDEN +8 sh2
+[0-9]+: 0+54 +0 TLS +LOCAL HIDDEN +8 sh6
+[0-9]+: 0+1c +0 TLS +GLOBAL DEFAULT +8 sg8
@@ -152,5 +152,4 @@ Symbol table '.symtab' contains 57 entries:
+[0-9]+: 0+14 +0 TLS +GLOBAL DEFAULT +8 sg6
+[0-9]+: 0+18 +0 TLS +GLOBAL DEFAULT +8 sg7
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _edata
- +[0-9]+: 0+1013d0 +0 OBJECT GLOBAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
+[0-9]+: [0-9a-f]+ +0 NOTYPE GLOBAL DEFAULT ABS _end