mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
ld: Add -z nosectionheader test to bootstrap.exp
PR ld/25617 * testsuite/ld-bootstrap/bootstrap.exp: Add -z nosectionheader test.
This commit is contained in:
parent
3da917d534
commit
b7b6f36275
@ -66,6 +66,9 @@ set test_flags {"" "strip" "--static" "-Wl,--traditional-format"
|
||||
if { [istarget "powerpc-*-*"] } {
|
||||
lappend test_flags "-Wl,--ppc476-workaround"
|
||||
}
|
||||
if { [is_elf_format] && ![is_bad_symtab] } {
|
||||
lappend test_flags "-Wl,-z,nosectionheader"
|
||||
}
|
||||
|
||||
set gcc_B_opt_save $gcc_B_opt
|
||||
|
||||
@ -94,9 +97,12 @@ foreach flags $test_flags {
|
||||
set testname "bootstrap"
|
||||
}}
|
||||
|
||||
# --static is meaningless and --relax is incompatible with -r.
|
||||
# --static is meaningless. --relax and -z nosectionheader are
|
||||
# incompatible with -r.
|
||||
regsub -- "-Wl," $flags "" partial_flags
|
||||
if { "$partial_flags" == "--static" || "$partial_flags" == "--relax" } {
|
||||
if { "$partial_flags" == "--static" \
|
||||
|| "$partial_flags" == "--relax" \
|
||||
|| [string match "*nosectionheader*" "$partial_flags"] } {
|
||||
set partial_flags ""
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user