PATCH: Fix ld-elfvers/vers.exp

H. J. Lu hjl@lucon.org
Thu Oct 23 17:01:00 GMT 2003


When I changed it to use $CC instead of $ld to create a shared library,
I forgot to add -Wl,. Linking failed for different reason. That is why
we never noticed it. This patch fixes it.


H.J.
---
2003-10-23  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elfvers/vers.exp (test_ldfail): Add "-Wl," to pass the
	linker option from gcc.

--- ld-elfvers/vers.exp.gcc	2003-05-19 08:23:00.000000000 -0700
+++ ld-elfvers/vers.exp	2003-10-23 09:47:08.000000000 -0700
@@ -613,7 +613,7 @@ proc test_ldfail { test flag source exec
     if [string match "" $mapfile] then {
 	set script_arg ""
     } else {
-	set script_arg "$script $srcdir/$subdir/$mapfile"
+	set script_arg "-Wl,$script $srcdir/$subdir/$mapfile"
     }
 
     if {![ld_simple_link $CC $tmpdir/$execname "$tmpdir/$execname.o $other_lib $script_arg"]}     {



More information about the Binutils mailing list