aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-07 02:41:35 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-07 02:41:35 +0000
commit6f8bcf84a1bc7412dfee32328b370b6c4599a103 (patch)
tree2f6f57bd1c6c671fb3795ba2b021acd953d0181f /ld
parentdb564246a859699f649d544e24a42053c1502bb7 (diff)
downloadgdb-6f8bcf84a1bc7412dfee32328b370b6c4599a103.zip
gdb-6f8bcf84a1bc7412dfee32328b370b6c4599a103.tar.gz
gdb-6f8bcf84a1bc7412dfee32328b370b6c4599a103.tar.bz2
Don't bind unique symbol locally.
bfd/ 2010-04-06 H.J. Lu <hongjiu.lu@intel.com> PR ld/11434 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally. ld/testsuite/ 2010-04-06 H.J. Lu <hongjiu.lu@intel.com> PR ld/11434 * ld/testsuite/ld-x86-64/unique1.d: New. * ld/testsuite/ld-x86-64/unique1.s: Likewise. * ld-x86-64/x86-64.exp: Run unique1.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/testsuite/ld-x86-64/unique1.d10
-rw-r--r--ld/testsuite/ld-x86-64/unique1.s9
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp1
4 files changed, 28 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1d8c9f6..3c3ef03 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/11434
+ * ld/testsuite/ld-x86-64/unique1.d: New.
+ * ld/testsuite/ld-x86-64/unique1.s: Likewise.
+
+ * ld-x86-64/x86-64.exp: Run unique1.
+
2010-04-05 Kai Tietz <kai.tietz@onevision.com>
* emultempl/pep.em (U): Macro modified.
diff --git a/ld/testsuite/ld-x86-64/unique1.d b/ld/testsuite/ld-x86-64/unique1.d
new file mode 100644
index 0000000..00afd38
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/unique1.d
@@ -0,0 +1,10 @@
+#name: STB_GNU_UNIQUE with -Bsymbolic
+#as: --64
+#ld: -melf_x86_64 -shared -Bsymbolic
+#readelf: -rs --wide
+
+#...
+[0-9a-f]+ +[0-9a-f]+ +R_X86_64_GLOB_DAT +[0-9a-f]+ bar \+ 0
+#...
+ +[0-9]+: +[0-9a-f]+ +8 +OBJECT +UNIQUE +DEFAULT +[0-9]+ bar
+#pass
diff --git a/ld/testsuite/ld-x86-64/unique1.s b/ld/testsuite/ld-x86-64/unique1.s
new file mode 100644
index 0000000..3def1b3
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/unique1.s
@@ -0,0 +1,9 @@
+ .text
+foo:
+ movq bar@GOTPCREL(%rip), %rbp
+ .weak bar
+ .data
+ .type bar, @gnu_unique_object
+ .size bar, 8
+bar:
+ .quad 8
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 89a2e146..a8ebd41 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -97,3 +97,4 @@ run_dump_test "protected3"
run_dump_test "protected3-l1om"
run_dump_test "tlsle1"
run_dump_test "tlspie1"
+run_dump_test "unique1"