diff options
author | Alan Modra <amodra@gmail.com> | 2017-03-11 11:04:02 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-03-11 11:04:02 +1030 |
commit | bb4287c562027eafe63ddac9fd4c7e1730335795 (patch) | |
tree | 530b2c3aec5ad8c559f4c2c4c1e7c1f6e5488ace /ld/testsuite/ld-elf/shared.exp | |
parent | e299b3551edbe81be2062fcaef9319d681d0d15b (diff) | |
download | gdb-bb4287c562027eafe63ddac9fd4c7e1730335795.zip gdb-bb4287c562027eafe63ddac9fd4c7e1730335795.tar.gz gdb-bb4287c562027eafe63ddac9fd4c7e1730335795.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-elf/shared.exp')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |