mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
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.
This commit is contained in:

committed by
Alan Modra

parent
e86fc4a5bc
commit
b030ae091e
@ -135,7 +135,7 @@ proc shared_test { progname testname main sh1 sh2 dat args } {
|
|||||||
# On AIX, we need to use an export file.
|
# On AIX, we need to use an export file.
|
||||||
set shared -shared
|
set shared -shared
|
||||||
if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } {
|
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] } {
|
if { [is_elf_format] && [check_shared_lib_support] } {
|
||||||
append shared " -Wl,-z,notext"
|
append shared " -Wl,-z,notext"
|
||||||
|
Reference in New Issue
Block a user