Improve binutils testsuite coverage for GNU/Hurd.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-gc / gc.exp
index c271a3d25457e0b042f9ed8ba7b613ebadefa03f..ee9c97507110db3938827bf8a68075395aaf6f78 100644 (file)
@@ -92,3 +92,12 @@ test_gc "Check --gc-section/-r/-u" "gcrel" $ld "-r --gc-sections -u used_func"
 run_dump_test "noent"
 run_dump_test "abi-note"
 run_dump_test "start"
+if { [is_remote host] || [which $CC] != 0 } {
+    if { [istarget "*-*-linux*"]
+        || [istarget "*-*-gnu*"] } {
+       ld_compile "$CC -fPIC $CFLAGS $cflags" $srcdir/$subdir/pr11218-1.c tmpdir/pr11218-1.o
+       ld_simple_link $ld tmpdir/pr11218-1.so "-shared tmpdir/pr11218-1.o"
+       ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/pr11218-2.c tmpdir/pr11218-2.o
+       run_dump_test "pr11218"
+    }
+}
This page took 0.024191 seconds and 4 git commands to generate.