From bb4287c562027eafe63ddac9fd4c7e1730335795 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 11 Mar 2017 11:04:02 +1030 Subject: 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/testsuite/ld-elf/shared.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/testsuite/ld-elf') 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" -- cgit v1.1