Don't use -rdynamic in ld test
authorAlan Modra <amodra@gmail.com>
Sat, 11 Mar 2017 00:34:02 +0000 (11:04 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 11 Mar 2017 00:34:02 +0000 (11:04 +1030)
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
ld/testsuite/ld-elf/shared.exp

index 2ea76303368adf9441c6520762f44f705aeb9ae0..47c07b9a5e17fb40f8a73e5a2522f2fb196e19ad 100644 (file)
@@ -1,3 +1,8 @@
+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
index 070915a791d6055e1ebc29262c8bccfbb7f9d764..300100a6c2d26056f3dc8d58f543df47f4937704 100644 (file)
@@ -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"