* lib/target-supports.exp (check_gc_sections_available): Return
false for VxWorks targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122951
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-03-15 Richard Sandiford <richard@codesourcery.com>
+
+ * lib/target-supports.exp (check_gc_sections_available): Return
+ false for VxWorks targets.
+
2007-03-15 Dirk Mueller <dmueller@suse.de>
* g++.dg/warn/Wconversion2.C: Fix typo.
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.
+ if { [istarget *-*-vxworks*] } {
+ set gc_sections_available_saved 0
+ return 0
+ }
+
# Check if the ld used by gcc supports --gc-sections.
set gcc_spec [${tool}_target_compile "-dumpspecs" "" "none" ""]
regsub ".*\n\*linker:\[ \t\]*\n(\[^ \t\n\]*).*" "$gcc_spec" {\1} linker