2011-10-07 H.J. Lu <
[email protected]>
* ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
is available.
+
+ * ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
+ is available.
+
* ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d,
return
}
-run_cc_link_tests {
- {"PR ld/13195" "-Wl,--gc-sections" ""
- {pr13195.c} {} "pr13195"}
+if [check_gc_sections_available] {
+ run_cc_link_tests {
+ {"PR ld/13195" "-Wl,--gc-sections" ""
+ {pr13195.c} {} "pr13195"}
+ }
}
set array_tests {