mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
ld: Fix testcase errors due to -shared not support.
Reviewed-by: Jim Wilson <jim.wilson.gcc@gmail.com> ld/ChangeLog: * testsuite/ld-ctf/ctf.exp: Add shared lib check. * testsuite/ld-plugin/lto.exp: Add lto shared check.
This commit is contained in:
@ -28,6 +28,11 @@ if ![is_elf_format] {
|
||||
return 0
|
||||
}
|
||||
|
||||
if ![check_shared_lib_support] {
|
||||
unsupported "CTF needs shared lib support"
|
||||
return 0
|
||||
}
|
||||
|
||||
if {[info exists env(LC_ALL)]} {
|
||||
set old_lc_all $env(LC_ALL)
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ set lto_link_tests [list \
|
||||
[list [list "nm" "$plug_opt" "pr26389.d"]]] \
|
||||
]
|
||||
|
||||
if { [at_least_gcc_version 10 0] } {
|
||||
if { [at_least_gcc_version 10 0] && [check_lto_shared_available] } {
|
||||
set lto_link_tests [concat $lto_link_tests [list \
|
||||
[list "pr25355.o" \
|
||||
"" \
|
||||
|
Reference in New Issue
Block a user