* elflink.c (elf_link_output_extsym): Weaken assertion: if --gc-section is set, there...
[external/binutils.git] / ld / testsuite / ld-elf / elf.exp
index dc6a3a6..080d985 100644 (file)
@@ -53,6 +53,13 @@ if { [istarget *-*-linux*] } {
     }
 }
 
+if { [check_gc_sections_available] } {
+    run_ld_link_tests {
+       {"--gc-sections on tls variable"
+           "--gc-section" "" {tls_gc.s} {} "tls_gc"}
+    }
+}
+
 # The following tests require running the executable generated by ld.
 if ![isnative] {
     return