From bb4287c562027eafe63ddac9fd4c7e1730335795 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 11 Mar 2017 11:04:02 +1030 Subject: [PATCH] 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. --- 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 2ea76303368..47c07b9a5e1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2017-03-11 Alan Modra + + * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather + than -rdynamic. + 2017-03-11 Alan Modra * ld.texinfo (Orphan Sections): Mention that not all targets diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index 070915a791d..300100a6c2d 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" -- 2.30.2