Blame SOURCES/binutils-2.27-skip-rp14918-test-for-arm.patch

be6651
--- binutils-2.27.orig/ld/testsuite/ld-plugin/lto.exp	2016-09-20 14:11:51.866711051 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-plugin/lto.exp	2016-09-20 14:18:28.528223979 +0100
be6651
@@ -287,11 +287,21 @@ set lto_link_elf_tests [list \
be6651
    {dummy.c} {} "pr16746a.exe"] \
be6651
   [list "PR ld/16746 (2)" \
be6651
    "-O2 -flto -fuse-linker-plugin tmpdir/pr16746c.o tmpdir/pr16746a.o" "-O2 -flto" \
be6651
-   {dummy.c} {} "pr16746b.exe"] \
be6651
+       {dummy.c} {} "pr16746b.exe"] \
be6651
+]
be6651
+
be6651
+# PR 14918 checks that libgcc is not spuriously included in a shared link of
be6651
+# an empty program.  The ARM crt1.o startup code however calls __libc_csu_init
be6651
+# in /usr/lib/libc_nonshared.a(elf-init.oS).  This in turn needs
be6651
+# __aeabi_unwind_cpp_pr0@@GCC_3.5 which is provided by libgcc_s.so.1, so the
be6651
+# test fails.  Hence this code to skip the test.
be6651
+if { ! [istarget "arm*-*-*"] } {
be6651
+    set lto_link_elf_tests [concat $lto_link_elf_tests [list \
be6651
   [list "PR ld/14918" \
be6651
    "-flto" "-flto" \
be6651
    {pr14918.c} {{"readelf" {-d --wide} "pr14918.d"}} "pr14918.exe" "c"] \
be6651
-]
be6651
+  ]]
be6651
+}
be6651
 
be6651
 # Check final symbols in executables.
be6651
 set lto_link_symbol_tests [list \