This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix ld-elfvers/vers.exp
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 23 Oct 2003 10:01:21 -0700
- Subject: PATCH: Fix ld-elfvers/vers.exp
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"]} {