mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 22:41:28 +08:00
target-supports.exp (check_gc_sections_available): Return false if ldflags includes -elf2flt.
* lib/target-supports.exp (check_gc_sections_available): Return false if ldflags includes -elf2flt. From-SVN: r123810
This commit is contained in:
parent
2a60412a5f
commit
fd86239df0
@ -2,6 +2,9 @@
|
||||
|
||||
* gcc.c-torture/compile/pr27528.c: Require nonpic.
|
||||
|
||||
* lib/target-supports.exp (check_gc_sections_available):
|
||||
Return false if ldflags includes -elf2flt.
|
||||
|
||||
2007-04-13 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/31074
|
||||
|
@ -286,6 +286,14 @@ proc check_gc_sections_available { } {
|
||||
return 0
|
||||
}
|
||||
|
||||
# elf2flt uses -q (--emit-relocs), which is incompatible with
|
||||
# --gc-sections.
|
||||
if { [board_info target exists ldflags]
|
||||
&& [regexp " -elf2flt\[ =\]" " [board_info target ldflags] "] } {
|
||||
set gc_sections_available_saved 0
|
||||
return 0
|
||||
}
|
||||
|
||||
# VxWorks kernel modules are relocatable objects linked with -r,
|
||||
# while RTP executables are linked with -q (--emit-relocs).
|
||||
# Both of these options are incompatible with --gc-sections.
|
||||
|
Loading…
x
Reference in New Issue
Block a user