mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
ld/testsuite: force warnings when dealing with execstack tests
Binutils can be configured to avoid printing the execstack or RWD segment warnings. In this case, the first test of PR ld/29072 will fail. Fix that by always manually forcing the warnings for it. ld/ChangeLog: * testsuite/ld-elf/elf.exp (PR ld/29072): Force execstack and RWD segment warnings.
This commit is contained in:
parent
e2bae06cf9
commit
9cfd4ed49d
@ -237,18 +237,11 @@ if { [istarget *-*-*linux*]
|
||||
return $text
|
||||
}
|
||||
|
||||
# The HPPA target disables the warnings by default since it needs an
|
||||
# executable stack to support older kernels and an RWX segment to
|
||||
# support its PLT. MIPS also turns off exec stack warnings.
|
||||
if { [istarget "hppa*-*-*"] || [istarget mips*-*-*] } {
|
||||
set extra_link_opts "--warn-execstack --warn-rwx-segments"
|
||||
} else {
|
||||
set extra_link_opts ""
|
||||
}
|
||||
|
||||
# Since the warnings can be disabled by configure, ensure consistency
|
||||
# of the first test by forcing the flags.
|
||||
run_ld_link_tests [list \
|
||||
[list "PR ld/29072 (warn about an executable .note.GNU-stack)" \
|
||||
"-e 0 $extra_link_opts" \
|
||||
"-e 0 --warn-execstack --warn-rwx-segments" \
|
||||
"" \
|
||||
"" \
|
||||
{pr29072-a.s} \
|
||||
|
Loading…
Reference in New Issue
Block a user