Update mips tests with symbol version string
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Nov 2014 14:41:58 +0000 (06:41 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Nov 2014 14:44:29 +0000 (06:44 -0800)
* ld-mips-elf/got-vers-1.rd: Add symbol version string to
versioned symbol names in dynamic relocation.
* ld-mips-elf/reloc-estimate-1.d: Likewise.
* ld-mips-elf/tlsdyn-o32-1.got: Likewise.
* ld-mips-elf/tlsdyn-o32-2.got: Likewise.
* ld-mips-elf/tlsdyn-o32-3.got: Likewise.
* ld-mips-elf/tlslib-o32-ver.got: Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/got-vers-1.rd
ld/testsuite/ld-mips-elf/reloc-estimate-1.d
ld/testsuite/ld-mips-elf/tlsdyn-o32-1.got
ld/testsuite/ld-mips-elf/tlsdyn-o32-2.got
ld/testsuite/ld-mips-elf/tlsdyn-o32-3.got
ld/testsuite/ld-mips-elf/tlslib-o32-ver.got

index 9b871018f1c1224048251c94962931a171d8b10b..c87cc5772093739992550bf72347ec8ec80aa803 100644 (file)
@@ -1,3 +1,13 @@
+2014-11-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-mips-elf/got-vers-1.rd: Add symbol version string to
+       versioned symbol names in dynamic relocation.
+       * ld-mips-elf/reloc-estimate-1.d: Likewise.
+       * ld-mips-elf/tlsdyn-o32-1.got: Likewise.
+       * ld-mips-elf/tlsdyn-o32-2.got: Likewise.
+       * ld-mips-elf/tlsdyn-o32-3.got: Likewise.
+       * ld-mips-elf/tlslib-o32-ver.got: Likewise.
+
 2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        * ld-alpha/tlsbin.dd: Updated for secureplt.
index 48dcc645e59aaaa52bf55f9afe5d98136392615c..f1d5a2c46d9988df1e72365d7e555ddf0eae3dea 100644 (file)
@@ -3,4 +3,4 @@ Relocation section '\.rel\.dyn' at offset .* contains 2 entries:
  *Offset * Info * Type * Sym\.Value * Sym\. Name
 00000000 * 00000000 * R_MIPS_NONE *
 # This index must be the same as DT_MIPS_GOTSYM.
-[^ ]+ * 00000303 * R_MIPS_REL32 * [^ ]+ * foo
+[^ ]+ * 00000303 * R_MIPS_REL32 * [^ ]+ * foo@@V2
index 0d49b0542d874c1cd5e35d2fbdb3e71fabe01658..1269cb19283fa97e3e766b762fb469a3d0a78b10 100644 (file)
@@ -9,7 +9,7 @@
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
 00000000 R_MIPS_NONE       \*ABS\*
-00010000 R_MIPS_REL32      foo
+00010000 R_MIPS_REL32      foo@@V2
 
 
 # The address must be 0x810.  We should only ever allocate one dynamic
index d70fdd0bb30dd6418c6eb68e3e13932a418e6eb0..163aeb5273b33c45a2a518e05d0bdad812168b04 100644 (file)
@@ -4,12 +4,12 @@
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
 00000000 R_MIPS_NONE       \*ABS\*
-10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd
-1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd
-1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd
-10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd
-10000040 R_MIPS_TLS_TPREL32  tlsvar_ie
-10000034 R_MIPS_TLS_TPREL32  tlsbin_ie
+10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd@@Base
+1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd@@Base
+1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd@VER_1
+10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd@VER_1
+10000040 R_MIPS_TLS_TPREL32  tlsvar_ie@VER_1
+10000034 R_MIPS_TLS_TPREL32  tlsbin_ie@@Base
 
 
 Contents of section .got:
index 6b00157628531a4a32d93cd8f019634c27a885e1..80e914818b50ef380f1ae09dd25ba29d94e5bf0d 100644 (file)
@@ -4,12 +4,12 @@
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
 00000000 R_MIPS_NONE       \*ABS\*
-10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd
-1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd
-1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd
-10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd
-10000040 R_MIPS_TLS_TPREL32  tlsvar_ie
-10000034 R_MIPS_TLS_TPREL32  tlsbin_ie
+10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd@@Base
+1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd@@Base
+1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd@VER_1
+10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd@VER_1
+10000040 R_MIPS_TLS_TPREL32  tlsvar_ie@VER_1
+10000034 R_MIPS_TLS_TPREL32  tlsbin_ie@@Base
 
 
 Contents of section .got:
index 01eb44f98c506e4bd7b20844765b44ace94874a6..a1191e7960b77a54b68e863167bfec99b6c93f10 100644 (file)
@@ -4,12 +4,12 @@
 DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
 00000000 R_MIPS_NONE       \*ABS\*
-10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd
-1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd
-1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd
-10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd
-10000040 R_MIPS_TLS_TPREL32  tlsvar_ie
-10000034 R_MIPS_TLS_TPREL32  tlsbin_ie
+10000038 R_MIPS_TLS_DTPMOD32  tlsbin_gd@@Base
+1000003c R_MIPS_TLS_DTPREL32  tlsbin_gd@@Base
+1000002c R_MIPS_TLS_DTPMOD32  tlsvar_gd@VER_1
+10000030 R_MIPS_TLS_DTPREL32  tlsvar_gd@VER_1
+10000040 R_MIPS_TLS_TPREL32  tlsvar_ie@VER_1
+10000034 R_MIPS_TLS_TPREL32  tlsbin_ie@@Base
 
 
 Contents of section .got:
index a5b08019b93cd63ff26758368a1127e0aa1f0346..e675f9f64a5f4da37b34700878dd7eccb512bc8d 100644 (file)
@@ -5,9 +5,9 @@ DYNAMIC RELOCATION RECORDS
 OFFSET   TYPE              VALUE 
 00000000 R_MIPS_NONE       \*ABS\*
 000404d8 R_MIPS_TLS_DTPMOD32  \*ABS\*
-000404d0 R_MIPS_TLS_DTPMOD32  tlsvar_gd
-000404d4 R_MIPS_TLS_DTPREL32  tlsvar_gd
-000404cc R_MIPS_TLS_TPREL32  tlsvar_ie
+000404d0 R_MIPS_TLS_DTPMOD32  tlsvar_gd@@VER_1
+000404d4 R_MIPS_TLS_DTPREL32  tlsvar_gd@@VER_1
+000404cc R_MIPS_TLS_TPREL32  tlsvar_ie@@VER_1
 
 
 Contents of section .got: