aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-shared
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2021-03-11 11:08:17 +0100
committerAlan Modra <amodra@gmail.com>2021-11-10 14:43:24 +1030
commitb030ae091e65aba97e511fa9c9bb80c77cdeabad (patch)
treeee5f52f80c2b11ceab04ee8485016a58e96073c9 /ld/testsuite/ld-shared
parente86fc4a5bc3747a6b811d93648a2afa4c1c74217 (diff)
downloadbinutils-b030ae091e65aba97e511fa9c9bb80c77cdeabad.zip
binutils-b030ae091e65aba97e511fa9c9bb80c77cdeabad.tar.gz
binutils-b030ae091e65aba97e511fa9c9bb80c77cdeabad.tar.bz2
ld: set correct flags for AIX shared tests
Previous flags were aimed to be run with XLC. Nowadays, only GCC is being tested with GNU toolchain. Moreover, recent XLC versions might also accept "-shared". * testsuite/ld-shared/shared.exp: Adjust shared flags.
Diffstat (limited to 'ld/testsuite/ld-shared')
-rw-r--r--ld/testsuite/ld-shared/shared.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 655a56d..40f417e 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -135,7 +135,7 @@ proc shared_test { progname testname main sh1 sh2 dat args } {
# On AIX, we need to use an export file.
set shared -shared
if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } {
- set shared "-bM:SRE -bE:$tmpdir/xcoff.exp"
+ append shared " -Wl,-bE:$tmpdir/xcoff.exp"
}
if { [is_elf_format] && [check_shared_lib_support] } {
append shared " -Wl,-z,notext"