bfd/
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:46:02 +0000 (17:46 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Mon, 11 Feb 2013 17:46:02 +0000 (17:46 +0000)
* 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.

20 files changed:
bfd/ChangeLog
bfd/elfxx-mips.c
ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/tls-hidden3.d
ld/testsuite/ld-mips-elf/tls-hidden3.got
ld/testsuite/ld-mips-elf/tls-multi-got-1.got
ld/testsuite/ld-mips-elf/tlsbin-o32.d
ld/testsuite/ld-mips-elf/tlsbin-o32.got
ld/testsuite/ld-mips-elf/tlsdyn-o32-1.d
ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
ld/testsuite/ld-mips-elf/tlsdyn-o32-2.d
ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
ld/testsuite/ld-mips-elf/tlsdyn-o32-3.d
ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
ld/testsuite/ld-mips-elf/tlsdyn-o32.d
ld/testsuite/ld-mips-elf/tlsdyn-o32.got
ld/testsuite/ld-mips-elf/tlslib-o32-hidden.got
ld/testsuite/ld-mips-elf/tlslib-o32-ver.got
ld/testsuite/ld-mips-elf/tlslib-o32.d
ld/testsuite/ld-mips-elf/tlslib-o32.got

index 8434bc35377019f27d4c7c3d49de314112623fd4..88ff4aea21f03c1cbf55aa9c37fd060a7555e929 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * 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.
+
 2013-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * elfxx-mips.c (mips_elf_create_got_info): New function.
index 6c5e0fac804676c26983c3b08918421892e8e3bf..e497bfee2a96710324f4b35309b3634254c72b06 100644 (file)
@@ -699,8 +699,6 @@ static bfd_boolean mips_elf_create_dynamic_relocation
   (bfd *, struct bfd_link_info *, const Elf_Internal_Rela *,
    struct mips_elf_link_hash_entry *, asection *, bfd_vma,
    bfd_vma *, asection *);
-static hashval_t mips_elf_got_entry_hash
-  (const void *);
 static bfd_vma mips_elf_adjust_gp
   (bfd *, struct mips_got_info *, bfd *);
 static struct mips_got_info *mips_elf_got_for_ibfd
@@ -2795,19 +2793,6 @@ mips_elf_hash_bfd_vma (bfd_vma addr)
    use all fields to compute the hash, and compare the appropriate
    union members.  */
 
-static hashval_t
-mips_elf_got_entry_hash (const void *entry_)
-{
-  const struct mips_got_entry *entry = (struct mips_got_entry *)entry_;
-
-  return entry->symndx
-    + ((entry->tls_type & GOT_TLS_LDM) << 17)
-    + (! entry->abfd ? mips_elf_hash_bfd_vma (entry->d.address)
-       : entry->abfd->id
-         + (entry->symndx >= 0 ? mips_elf_hash_bfd_vma (entry->d.addend)
-           : entry->d.h->root.root.root.hash));
-}
-
 static int
 mips_elf_got_entry_eq (const void *entry1, const void *entry2)
 {
@@ -2830,7 +2815,7 @@ mips_elf_got_entry_eq (const void *entry1, const void *entry2)
    accordingly.  */
 
 static hashval_t
-mips_elf_multi_got_entry_hash (const void *entry_)
+mips_elf_got_entry_hash (const void *entry_)
 {
   const struct mips_got_entry *entry = (struct mips_got_entry *)entry_;
 
@@ -2902,7 +2887,7 @@ mips_elf_create_got_info (bfd *abfd, bfd_boolean master_got_p)
     g->got_entries = htab_try_create (1, mips_elf_got_entry_hash,
                                      mips_elf_got_entry_eq, NULL);
   else
-    g->got_entries = htab_try_create (1, mips_elf_multi_got_entry_hash,
+    g->got_entries = htab_try_create (1, mips_elf_got_entry_hash,
                                      mips_elf_multi_got_entry_eq, NULL);
   if (g->got_entries == NULL)
     return NULL;
index b1bc8f3a95330e7511b8cfadd83668b532cebead..dc9eb82ef83f367752630d511e20c004976a2532 100644 (file)
@@ -1,3 +1,16 @@
+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
index 06a0c66f97a143c668deea7d84c35732780986fe..b627906135287d8aead154736ac574c3973d2b2f 100644 (file)
@@ -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\)
index 282a027135788cb8417a12418bdcc64d3c3da43d..eb8258edf9fd15136447114fec857395b6d31fb9 100644 (file)
 # 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           .*
index bab0fb0919001d271fa8171d9e137a10c9a99b32..6f666c1360bab37d318ae3b564d53ff5dbf57c89 100644 (file)
@@ -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:
index 0319649f7859f711dd34a7b341691bac2a4c7168..dbf3ef383de625f46c8fefed3ff5414f81474159 100644 (file)
@@ -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\)
index 7deecf54897f4e5275e9776d5ae1d5834778dfad..795be964dbf69c140512ae2196d24b1598767a53 100644 (file)
@@ -3,4 +3,4 @@
 
 Contents of section .got:
  10000010 00000000 80000000 00400158 ffff900c  .........@.X....
- 10000020 00000001 00000000 00000001 ffff8008  ................
+ 10000020 00000001 ffff8008 00000001 00000000  ................
index 99eb032b211869a0e49ab0c5fcb3024721596147..ac591654f562786c6c1fd4744ec24f858dd1c335 100644 (file)
@@ -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
index 8b021e3c7ce19c874f727f62662bf53d39635bd2..427fc2fac7a39f1447c7f981f6f3da38c45e7f6e 100644 (file)
@@ -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           ............    
index 221c3b5d4c6862516a759864fe6991e07df36c21..509483ea4bc2483a90ad6a058006f9f25a8fb447 100644 (file)
@@ -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
index f43f312579952ca6bf8a85bc25a6e31fa7ae586b..46ad88f561382b0b66b8eee3a85e6ae2ff607010 100644 (file)
@@ -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           .*
index 3d540dd8c1daf9f934e98bd066edcb786165fdb3..2a1480ab3b1a755361a351969bd226369601f2cd 100644 (file)
@@ -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
index 7da535c26df3af9987cc0bd5859e984f980c25f7..5a7d608c0f9f149d0b7c4c04e5328a407f89c76f 100644 (file)
@@ -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           .*
index 31b08ecf2ee49d051bd788f099216f1d1c7a7816..b346409ac5b206413762daff03e335635fc555c9 100644 (file)
@@ -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
index eef85eee2944dc8eb564d33a362faf4588a538fa..395b0702c0b0c4b1e4f9a9da0dbc5c7f3e0abe6f 100644 (file)
@@ -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           ............    
index b1a831797d3e1dc6b8557be2872623094055b3f3..563d8bb08287b1240b023ee27f8a5eb3b85dcafa 100644 (file)
@@ -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  ................
index 8b5233de0cc81d2e3823d4bd592511de06830372..e4b26c8b34c782f399afd1832333f07d60ea6116 100644 (file)
@@ -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
 
 
index cdeededd0af9978fd326e7e93db8caddae95a00e..e0b3fe3ea936db170bf253532bb63c610c631a6c 100644 (file)
@@ -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\)
index 150022342689da23832e7816c8b2c15c7b83d557..6ac910f7f07391a02beb84aca1c4f4701bb428fb 100644 (file)
@@ -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