ld: set correct flags for AIX shared tests
authorClément Chigot <clement.chigot@atos.net>
Thu, 11 Mar 2021 10:08:17 +0000 (11:08 +0100)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Nov 2021 04:13:24 +0000 (14:43 +1030)
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.

ld/testsuite/ld-shared/shared.exp

index 655a56da99c1e5de4d3ee0321055a72b622a2381..40f417eb690fe250b9683825a911dea3687cacc4 100644 (file)
@@ -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"