This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Don't use -rdynamic in ld test
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 11 Mar 2017 01:05:32 -0000
- Subject: [binutils-gdb] Don't use -rdynamic in ld test
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bb4287c562027eafe63ddac9fd4c7e1730335795
commit bb4287c562027eafe63ddac9fd4c7e1730335795
Author: Alan Modra <amodra@gmail.com>
Date: Sat Mar 11 11:04:02 2017 +1030
Don't use -rdynamic in ld test
This gcc option isn't well supported, so use the actual linker option
we want to test.
* testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
than -rdynamic.
Diff:
---
ld/ChangeLog | 5 +++++
ld/testsuite/ld-elf/shared.exp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2ea7630..47c07b9 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2017-03-11 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
+ than -rdynamic.
+
+2017-03-11 Alan Modra <amodra@gmail.com>
+
* ld.texinfo (Orphan Sections): Mention that not all targets
handle orphans well.
* testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index 070915a..300100a 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -328,7 +328,7 @@ set build_tests {
"" ""
{pr2404b.c} {} "libpr2404b.a"}
{"Build rdynamic-1"
- "-rdynamic -Wl,--gc-sections" "-ffunction-sections"
+ "-Wl,-export-dynamic,--gc-sections" "-ffunction-sections"
{rdynamic-1.c} {{readelf {-s} rdynamic-1.rd}} "rdynamic-1"}
{"Build dynamic-1"
"-Wl,--dynamic-list,dynamic-1.syms -Wl,--gc-sections" "-ffunction-sections"