diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-12-03 19:01:30 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-12-03 19:01:30 +0400 |
commit | 8ce8d223a716e16cd3ffd3aaa04d4dee7d35d4dd (patch) | |
tree | df24ae9285d42b32bf3f9b74e0142a4e36b6f5f0 /binutils/patches/131_ld_bootstrap_testsuite.patch | |
parent | 7a067c659745b5cd1cc33767cc4d554b40885a5c (diff) | |
download | cibs-pkgs-8ce8d223a716e16cd3ffd3aaa04d4dee7d35d4dd.tar.gz |
GNU binutils 2.22+
Diffstat (limited to 'binutils/patches/131_ld_bootstrap_testsuite.patch')
-rw-r--r-- | binutils/patches/131_ld_bootstrap_testsuite.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/binutils/patches/131_ld_bootstrap_testsuite.patch b/binutils/patches/131_ld_bootstrap_testsuite.patch new file mode 100644 index 0000000..0c53a7b --- /dev/null +++ b/binutils/patches/131_ld_bootstrap_testsuite.patch @@ -0,0 +1,45 @@ +Author: +Description: Description: Fix ld-bootstrap testsuite when configured with --enable-plugins +Author: Rafael Espindola +Upstream status: proposed patch +--- a/ld/testsuite/ld-bootstrap/bootstrap.exp ++++ b/ld/testsuite/ld-bootstrap/bootstrap.exp +@@ -40,6 +40,15 @@ + set plugins "no" + } + ++remote_exec host "$nm --help" "" "/dev/null" "plugin-support" ++set tmp [file_contents "plugin-support"] ++regexp ".*\(--plugin\).*\n" $tmp foo plugins ++if [info exists plugins] then { ++ set plugins "yes" ++} else { ++ set plugins "no" ++} ++ + # Bootstrap ld. First link the object files together using -r, in + # order to test -r. Then link the result into an executable, ld1, to + # really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a +@@ -78,6 +87,11 @@ + continue + } + ++ if { $flags == "--static" && $plugins == "yes" } then { ++ untested $testname ++ continue ++ } ++ + # If we only have a shared libbfd, we probably can't run the + # --static test.will fail. + if { $flags == "--static" && ! [string match "*libbfd.a*" $BFDLIB] } then { +@@ -112,6 +126,10 @@ + if { $plugins == "yes" } { + set extralibs "$extralibs -ldl" + } ++ ++ if { $plugins == "yes" } { ++ set extralibs "$extralibs -ldl" ++ } + + # On Irix 5, linking with --static only works if all the files are + # compiled using -non_shared. |