aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-02-11 17:46:02 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2013-02-11 17:46:02 +0000
commitd9bf376d0912bb01468ccf66e6f434a88d4b86a6 (patch)
tree9008b5187f56ca77f00e3f632675180e1e56dace /ld
parent5334aa52f0c538a836409255caabd8f09be9f926 (diff)
downloadfsf-binutils-gdb-d9bf376d0912bb01468ccf66e6f434a88d4b86a6.zip
fsf-binutils-gdb-d9bf376d0912bb01468ccf66e6f434a88d4b86a6.tar.gz
fsf-binutils-gdb-d9bf376d0912bb01468ccf66e6f434a88d4b86a6.tar.bz2
bfd/
* elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to... (mips_elf_got_entry_hash): ...this, deleting the old version. (mips_elf_create_got_info): Use mips_elf_got_entry_hash for both types of GOT. ld/testsuite/ * ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got, ld-mips-elf/tls-multi-got-1.got, ld-mips-elf/tlsbin-o32.d, ld-mips-elf/tlsbin-o32.got, ld-mips-elf/tlsdyn-o32-1.d, ld-mips-elf/tlsdyn-o32-1.got, ld-mips-elf/tlsdyn-o32-2.d, ld-mips-elf/tlsdyn-o32-2.got, ld-mips-elf/tlsdyn-o32-3.d, ld-mips-elf/tlsdyn-o32-3.got, ld-mips-elf/tlsdyn-o32.d, ld-mips-elf/tlsdyn-o32.got, ld-mips-elf/tlslib-o32.d, ld-mips-elf/tlslib-o32.got, ld-mips-elf/tlslib-o32-hidden.got, ld-mips-elf/tlslib-o32-ver.got: Adjust GOT layout for new got_entry hash function.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog13
-rw-r--r--ld/testsuite/ld-mips-elf/tls-hidden3.d18
-rw-r--r--ld/testsuite/ld-mips-elf/tls-hidden3.got8
-rw-r--r--ld/testsuite/ld-mips-elf/tls-multi-got-1.got4
-rw-r--r--ld/testsuite/ld-mips-elf/tlsbin-o32.d4
-rw-r--r--ld/testsuite/ld-mips-elf/tlsbin-o32.got2
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d20
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got16
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d16
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got12
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d16
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got12
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32.d10
-rw-r--r--ld/testsuite/ld-mips-elf/tlsdyn-o32.got16
-rw-r--r--ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got2
-rw-r--r--ld/testsuite/ld-mips-elf/tlslib-o32-ver.got6
-rw-r--r--ld/testsuite/ld-mips-elf/tlslib-o32.d4
-rw-r--r--ld/testsuite/ld-mips-elf/tlslib-o32.got6
18 files changed, 99 insertions, 86 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index b1bc8f3..dc9eb82 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,18 @@
2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
+ * ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got,
+ ld-mips-elf/tls-multi-got-1.got, ld-mips-elf/tlsbin-o32.d,
+ ld-mips-elf/tlsbin-o32.got, ld-mips-elf/tlsdyn-o32-1.d,
+ ld-mips-elf/tlsdyn-o32-1.got, ld-mips-elf/tlsdyn-o32-2.d,
+ ld-mips-elf/tlsdyn-o32-2.got, ld-mips-elf/tlsdyn-o32-3.d,
+ ld-mips-elf/tlsdyn-o32-3.got, ld-mips-elf/tlsdyn-o32.d,
+ ld-mips-elf/tlsdyn-o32.got, ld-mips-elf/tlslib-o32.d,
+ ld-mips-elf/tlslib-o32.got, ld-mips-elf/tlslib-o32-hidden.got,
+ ld-mips-elf/tlslib-o32-ver.got: Adjust GOT layout for new
+ got_entry hash function.
+
+2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
+
* ld-mips-elf/tlsdyn-o32-2.got, ld-mips-elf/tlsdyn-o32-3.got: Remove
unused GOT entries.
diff --git a/ld/testsuite/ld-mips-elf/tls-hidden3.d b/ld/testsuite/ld-mips-elf/tls-hidden3.d
index 06a0c66..b627906 100644
--- a/ld/testsuite/ld-mips-elf/tls-hidden3.d
+++ b/ld/testsuite/ld-mips-elf/tls-hidden3.d
@@ -7,18 +7,18 @@ Disassembly of section \.text:
# The TLS entries are ordered as follows:
#
# foo0 (-0x7ff0 + 0x20)
-# foo2 (-0x7ff0 + 0x24)
-# foo3 (-0x7ff0 + 0x28)
-# foo1 (-0x7ff0 + 0x2c)
+# foo1 (-0x7ff0 + 0x24)
+# foo2 (-0x7ff0 + 0x28)
+# foo3 (-0x7ff0 + 0x2c)
#
# Any order would be acceptable, but it must match the .got dump.
#
00080c00 <\.text>:
80c00: 8f84801c lw a0,-32740\(gp\)
- 80c04: 8f848028 lw a0,-32728\(gp\)
- 80c08: 8f848020 lw a0,-32736\(gp\)
- 80c0c: 8f848024 lw a0,-32732\(gp\)
+ 80c04: 8f848020 lw a0,-32736\(gp\)
+ 80c08: 8f848024 lw a0,-32732\(gp\)
+ 80c0c: 8f848028 lw a0,-32728\(gp\)
80c10: 8f84801c lw a0,-32740\(gp\)
- 80c14: 8f848028 lw a0,-32728\(gp\)
- 80c18: 8f848020 lw a0,-32736\(gp\)
- 80c1c: 8f848024 lw a0,-32732\(gp\)
+ 80c14: 8f848020 lw a0,-32736\(gp\)
+ 80c18: 8f848024 lw a0,-32732\(gp\)
+ 80c1c: 8f848028 lw a0,-32728\(gp\)
diff --git a/ld/testsuite/ld-mips-elf/tls-hidden3.got b/ld/testsuite/ld-mips-elf/tls-hidden3.got
index 282a027..eb8258e 100644
--- a/ld/testsuite/ld-mips-elf/tls-hidden3.got
+++ b/ld/testsuite/ld-mips-elf/tls-hidden3.got
@@ -12,12 +12,12 @@
# The order of the TLS entries is:
#
# foo0 (offset 0x20)
-# foo2 (offset 0x24)
-# foo3 (offset 0x28)
-# foo1 (offset 0x2c)
+# foo1 (offset 0x24)
+# foo2 (offset 0x28)
+# foo3 (offset 0x2c)
#
# Any order would be acceptable, but it must match the .d dump.
#
Contents of section \.got:
90000 00000000 80000000 00000000 0000abc0 .*
- 90010 0000abc8 0000abcc 0000abc4 .*
+ 90010 0000abc4 0000abc8 0000abcc .*
diff --git a/ld/testsuite/ld-mips-elf/tls-multi-got-1.got b/ld/testsuite/ld-mips-elf/tls-multi-got-1.got
index bab0fb0..6f666c1 100644
--- a/ld/testsuite/ld-mips-elf/tls-multi-got-1.got
+++ b/ld/testsuite/ld-mips-elf/tls-multi-got-1.got
@@ -12,9 +12,9 @@ OFFSET TYPE VALUE
0014948c R_MIPS_TLS_DTPREL32 tlsvar_gd
0013f828 R_MIPS_TLS_TPREL32 tlsvar_ie
00149484 R_MIPS_TLS_TPREL32 tlsvar_ie
-00143e28 R_MIPS_REL32 sym_1_9526
+00143e3c R_MIPS_REL32 sym_1_9526
#...
-00139aa8 R_MIPS_REL32 sym_2_8654
+0013a8f8 R_MIPS_REL32 sym_2_8654
Contents of section .got:
diff --git a/ld/testsuite/ld-mips-elf/tlsbin-o32.d b/ld/testsuite/ld-mips-elf/tlsbin-o32.d
index 0319649..dbf3ef3 100644
--- a/ld/testsuite/ld-mips-elf/tlsbin-o32.d
+++ b/ld/testsuite/ld-mips-elf/tlsbin-o32.d
@@ -11,13 +11,13 @@ Disassembly of section .text:
4000e4: 03a0f021 move s8,sp
4000e8: afbc0000 sw gp,0\(sp\)
4000ec: 8f998018 lw t9,-32744\(gp\)
- 4000f0: 27848028 addiu a0,gp,-32728
+ 4000f0: 27848020 addiu a0,gp,-32736
4000f4: 0320f809 jalr t9
4000f8: 00000000 nop
4000fc: 8fdc0000 lw gp,0\(s8\)
400100: 00000000 nop
400104: 8f998018 lw t9,-32744\(gp\)
- 400108: 27848020 addiu a0,gp,-32736
+ 400108: 27848028 addiu a0,gp,-32728
40010c: 0320f809 jalr t9
400110: 00000000 nop
400114: 8fdc0000 lw gp,0\(s8\)
diff --git a/ld/testsuite/ld-mips-elf/tlsbin-o32.got b/ld/testsuite/ld-mips-elf/tlsbin-o32.got
index 7deecf5..795be96 100644
--- a/ld/testsuite/ld-mips-elf/tlsbin-o32.got
+++ b/ld/testsuite/ld-mips-elf/tlsbin-o32.got
@@ -3,4 +3,4 @@
Contents of section .got:
10000010 00000000 80000000 00400158 ffff900c .........@.X....
- 10000020 00000001 00000000 00000001 ffff8008 ................
+ 10000020 00000001 ffff8008 00000001 00000000 ................
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
index 99eb032..ac59165 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
@@ -12,19 +12,19 @@ Disassembly of section .text:
.*: 03a0f021 move s8,sp
.*: afbc0000 sw gp,0\(sp\)
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848024 addiu a0,gp,-32732
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 2784801c addiu a0,gp,-32740
+ .*: 27848028 addiu a0,gp,-32728
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -33,10 +33,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83802c lw v1,-32724\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
@@ -62,19 +62,19 @@ Disassembly of section .text:
.*: 03a0f021 move s8,sp
.*: afbc0000 sw gp,0\(sp\)
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848024 addiu a0,gp,-32732
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 2784801c addiu a0,gp,-32740
+ .*: 27848028 addiu a0,gp,-32728
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -83,10 +83,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83802c lw v1,-32724\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
index 8b021e3..427fc2f 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
@@ -4,15 +4,15 @@
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
-10000040 R_MIPS_TLS_DTPMOD32 tlsbin_gd
-10000044 R_MIPS_TLS_DTPREL32 tlsbin_gd
-10000034 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-10000038 R_MIPS_TLS_DTPREL32 tlsvar_gd
-1000003c R_MIPS_TLS_TPREL32 tlsvar_ie
-10000048 R_MIPS_TLS_TPREL32 tlsbin_ie
+10000030 R_MIPS_TLS_DTPMOD32 tlsbin_gd
+10000034 R_MIPS_TLS_DTPREL32 tlsbin_gd
+10000044 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+10000048 R_MIPS_TLS_DTPREL32 tlsvar_gd
+10000040 R_MIPS_TLS_TPREL32 tlsvar_ie
+1000002c R_MIPS_TLS_TPREL32 tlsbin_ie
Contents of section .got:
- 10000020 00000000 80000000 004004ac 00000001 .........@......
- 10000030 00000000 00000000 00000000 00000000 ................
+ 10000020 00000000 80000000 004004ac 00000000 .........@......
+ 10000030 00000000 00000000 00000001 00000000 ................
10000040 00000000 00000000 00000000 ............
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
index 221c3b5..509483e 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
@@ -18,13 +18,13 @@ Disassembly of section .text:
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848020 addiu a0,gp,-32736
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -33,10 +33,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83801c lw v1,-32740\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
@@ -68,13 +68,13 @@ Disassembly of section .text:
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848020 addiu a0,gp,-32736
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -83,10 +83,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83801c lw v1,-32740\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
index f43f312..46ad88f 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
@@ -6,13 +6,13 @@ OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
10000038 R_MIPS_TLS_DTPMOD32 tlsbin_gd
1000003c R_MIPS_TLS_DTPREL32 tlsbin_gd
-10000030 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-10000034 R_MIPS_TLS_DTPREL32 tlsvar_gd
-1000002c R_MIPS_TLS_TPREL32 tlsvar_ie
-10000048 R_MIPS_TLS_TPREL32 tlsbin_ie
+10000044 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+10000048 R_MIPS_TLS_DTPREL32 tlsvar_gd
+10000040 R_MIPS_TLS_TPREL32 tlsvar_ie
+1000002c R_MIPS_TLS_TPREL32 tlsbin_ie
Contents of section .got:
10000020 00000000 80000000 004004ac 00000000 .*
- 10000030 00000000 00000000 00000000 00000000 .*
- 10000040 00000001 00000000 00000000 .*
+ 10000030 00000001 00000000 00000000 00000000 .*
+ 10000040 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
index 3d540dd..2a1480a 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
@@ -18,13 +18,13 @@ Disassembly of section .text:
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848020 addiu a0,gp,-32736
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -33,10 +33,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83801c lw v1,-32740\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
@@ -64,13 +64,13 @@ Disassembly of section .text:
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848020 addiu a0,gp,-32736
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848030 addiu a0,gp,-32720
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -79,10 +79,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838038 lw v1,-32712\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83801c lw v1,-32740\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
index 7da535c..5a7d608 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
@@ -6,13 +6,13 @@ OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
10000038 R_MIPS_TLS_DTPMOD32 tlsbin_gd
1000003c R_MIPS_TLS_DTPREL32 tlsbin_gd
-10000030 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-10000034 R_MIPS_TLS_DTPREL32 tlsvar_gd
-1000002c R_MIPS_TLS_TPREL32 tlsvar_ie
-10000048 R_MIPS_TLS_TPREL32 tlsbin_ie
+10000044 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+10000048 R_MIPS_TLS_DTPREL32 tlsvar_gd
+10000040 R_MIPS_TLS_TPREL32 tlsvar_ie
+1000002c R_MIPS_TLS_TPREL32 tlsbin_ie
Contents of section .got:
10000020 00000000 80000000 0040055c 00000000 .*
- 10000030 00000000 00000000 00000000 00000000 .*
- 10000040 00000001 00000000 00000000 .*
+ 10000030 00000001 00000000 00000000 00000000 .*
+ 10000040 00000000 00000000 00000000 .*
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32.d b/ld/testsuite/ld-mips-elf/tlsdyn-o32.d
index 31b08ec..b346409 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32.d
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32.d
@@ -12,19 +12,19 @@ Disassembly of section .text:
.*: 03a0f021 move s8,sp
.*: afbc0000 sw gp,0\(sp\)
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848024 addiu a0,gp,-32732
+ .*: 27848034 addiu a0,gp,-32716
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848034 addiu a0,gp,-32716
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 2784801c addiu a0,gp,-32740
+ .*: 27848028 addiu a0,gp,-32728
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
@@ -33,10 +33,10 @@ Disassembly of section .text:
.*: 24638000 addiu v1,v1,-32768
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
- .*: 8f838030 lw v1,-32720\(gp\)
+ .*: 8f83801c lw v1,-32740\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
- .*: 8f83802c lw v1,-32724\(gp\)
+ .*: 8f838030 lw v1,-32720\(gp\)
.*: 00000000 nop
.*: 00621821 addu v1,v1,v0
.*: 7c02283b rdhwr v0,\$5
diff --git a/ld/testsuite/ld-mips-elf/tlsdyn-o32.got b/ld/testsuite/ld-mips-elf/tlsdyn-o32.got
index eef85ee..395b070 100644
--- a/ld/testsuite/ld-mips-elf/tlsdyn-o32.got
+++ b/ld/testsuite/ld-mips-elf/tlsdyn-o32.got
@@ -4,15 +4,15 @@ tmpdir/tls-dynamic-o32: file format elf32-tradbigmips
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
-10000034 R_MIPS_TLS_DTPMOD32 tlsbin_gd
-10000038 R_MIPS_TLS_DTPREL32 tlsbin_gd
-10000044 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-10000048 R_MIPS_TLS_DTPREL32 tlsvar_gd
-10000040 R_MIPS_TLS_TPREL32 tlsbin_ie
-1000003c R_MIPS_TLS_TPREL32 tlsvar_ie
+10000044 R_MIPS_TLS_DTPMOD32 tlsbin_gd
+10000048 R_MIPS_TLS_DTPREL32 tlsbin_gd
+10000030 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+10000034 R_MIPS_TLS_DTPREL32 tlsvar_gd
+1000002c R_MIPS_TLS_TPREL32 tlsbin_ie
+10000040 R_MIPS_TLS_TPREL32 tlsvar_ie
Contents of section .got:
- 10000020 00000000 80000000 004004fc 00000001 ................
- 10000030 00000000 00000000 00000000 00000000 ................
+ 10000020 00000000 80000000 004004fc 00000000 ................
+ 10000030 00000000 00000000 00000001 00000000 ................
10000040 00000000 00000000 00000000 ............
diff --git a/ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got b/ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got
index b1a8317..563d8bb 100644
--- a/ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got
+++ b/ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got
@@ -11,4 +11,4 @@ OFFSET TYPE VALUE
Contents of section .got:
403b0 00000000 80000000 00000380 00000008 ................
- 403c0 00000000 00000000 00000000 ffff8004 ................
+ 403c0 00000000 ffff8004 00000000 00000000 ................
diff --git a/ld/testsuite/ld-mips-elf/tlslib-o32-ver.got b/ld/testsuite/ld-mips-elf/tlslib-o32-ver.got
index 8b5233d..e4b26c8 100644
--- a/ld/testsuite/ld-mips-elf/tlslib-o32-ver.got
+++ b/ld/testsuite/ld-mips-elf/tlslib-o32-ver.got
@@ -4,9 +4,9 @@
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
-00040500 R_MIPS_TLS_DTPMOD32 \*ABS\*
-00040508 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-0004050c R_MIPS_TLS_DTPREL32 tlsvar_gd
+00040508 R_MIPS_TLS_DTPMOD32 \*ABS\*
+00040500 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+00040504 R_MIPS_TLS_DTPREL32 tlsvar_gd
000404fc R_MIPS_TLS_TPREL32 tlsvar_ie
diff --git a/ld/testsuite/ld-mips-elf/tlslib-o32.d b/ld/testsuite/ld-mips-elf/tlslib-o32.d
index cdeeded..e0b3fe3 100644
--- a/ld/testsuite/ld-mips-elf/tlslib-o32.d
+++ b/ld/testsuite/ld-mips-elf/tlslib-o32.d
@@ -12,13 +12,13 @@ Disassembly of section .text:
.*: 03a0f021 move s8,sp
.*: afbc0000 sw gp,0\(sp\)
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848028 addiu a0,gp,-32728
+ .*: 27848020 addiu a0,gp,-32736
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
.*: 00000000 nop
.*: 8f998018 lw t9,-32744\(gp\)
- .*: 27848020 addiu a0,gp,-32736
+ .*: 27848028 addiu a0,gp,-32728
.*: 0320f809 jalr t9
.*: 00000000 nop
.*: 8fdc0000 lw gp,0\(s8\)
diff --git a/ld/testsuite/ld-mips-elf/tlslib-o32.got b/ld/testsuite/ld-mips-elf/tlslib-o32.got
index 1500223..6ac910f 100644
--- a/ld/testsuite/ld-mips-elf/tlslib-o32.got
+++ b/ld/testsuite/ld-mips-elf/tlslib-o32.got
@@ -4,9 +4,9 @@ tmpdir/tlslib-o32.so: file format elf32-tradbigmips
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
00000000 R_MIPS_NONE \*ABS\*
-00040460 R_MIPS_TLS_DTPMOD32 \*ABS\*
-00040468 R_MIPS_TLS_DTPMOD32 tlsvar_gd
-0004046c R_MIPS_TLS_DTPREL32 tlsvar_gd
+00040468 R_MIPS_TLS_DTPMOD32 \*ABS\*
+00040460 R_MIPS_TLS_DTPMOD32 tlsvar_gd
+00040464 R_MIPS_TLS_DTPREL32 tlsvar_gd
0004045c R_MIPS_TLS_TPREL32 tlsvar_ie