summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr13177.d
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-09-16 01:17:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-09-16 01:17:16 +0000
commit3475fe928892df696f6ea9b2c912e1379591e736 (patch)
tree9efa45ffa792aa6e031b3bd307c7aab064b5e6c7 /ld/testsuite/ld-elf/pr13177.d
parentbd5bb372a93328acd501b49d91b9fd856bcb532e (diff)
downloadbinutils-redhat-3475fe928892df696f6ea9b2c912e1379591e736.tar.gz
Also hide symbols without PLT nor GOT references.
bfd/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/13177 * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT nor GOT references. ld/testsuite/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/13177 * ld-elf/pr13177.d: New. * ld-elf/pr13177.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/pr13177.d')
-rw-r--r--ld/testsuite/ld-elf/pr13177.d11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr13177.d b/ld/testsuite/ld-elf/pr13177.d
new file mode 100644
index 0000000000..425a239826
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr13177.d
@@ -0,0 +1,11 @@
+#source: pr13177.s
+#ld: --gc-sections -shared
+#readelf: -s -D --wide
+#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+# generic linker targets don't support --gc-sections, nor do a bunch of others
+
+#failif
+#...
+.*: 0+0 +0 +NOTYPE +GLOBAL +DEFAULT +UND bar
+#...