This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch,ld] remove ldflags support in ld testsuite
- From: Vidya Praveen <vidyapraveen at arm dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "hp at bitrange dot com" <hp at bitrange dot com>, "amodra at gmail dot com" <amodra at gmail dot com>
- Date: Mon, 13 Jan 2014 19:12:14 +0000
- Subject: Re: [Patch,ld] remove ldflags support in ld testsuite
- Authentication-results: sourceware.org; auth=none
- References: <20140113155628 dot GA20498 at e103625-lin dot cambridge dot arm dot com>
Now, with the patch attached! :-)
VP.
On Mon, Jan 13, 2014 at 03:56:29PM +0000, Vidya Praveen wrote:
> Hello,
>
> This patch removes the recently added support for ldflags in ld testsuite.
> This was earlier added in order to facilitate supplying flags for 'ld' but
> this board config variable is actually meant for ld flags for gcc driver.
> I'll propose a new name for the variable that holds the flags of 'ld' and
> add support for the same. Until then removing this in order to avoid
> regressions on other targets.
>
> OK?
>
> VP.
>
> ld/testsuite/ChangeLog:
>
> 2014-01-13 Vidya Praveen <vidyapraveen@arm.com>
>
> * lib/ld-lib.exp (default_ld_link): Remove support for ldflags.
> (default_ld_simple_link): Likewise.
>
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 54b617f..99fb5d8 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -199,10 +199,6 @@ proc default_ld_link { ld target objects } {
set flags ""
}
- if [board_info [target_info name] exists ldflags] {
- append flags " [board_info [target_info name] ldflags]"
- }
-
remote_file host delete $target
return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"]
@@ -221,10 +217,6 @@ proc default_ld_simple_link { ld target objects } {
set flags ""
}
- if [board_info [target_info name] exists ldflags] {
- append flags " [board_info [target_info name] ldflags]"
- }
-
# If we are compiling with gcc, we want to add gcc_ld_flag to
# flags. Rather than determine this in some complex way, we guess
# based on the name of the compiler.