Fix ld testcases on c6x

Bernd Schmidt bernds@codesourcery.com
Wed May 11 12:31:00 GMT 2011


On 05/11/2011 01:56 PM, Alan Modra wrote:
> On Wed, May 11, 2011 at 01:10:23PM +0200, Bernd Schmidt wrote:
>> +if { ![ld_assemble $as "$as_opt $srcdir/$subdir/tbss.s" tmpdir/tbss.o ]
>> +     || ![ld_assemble $as "$as_opt $srcdir/$subdir/frame.s" tmpdir/frame.o] }
> 
> Passing options like this in the "source" parameter of ld_assemble
> isn't the cleanest way.

I just followed lib/ld-lib.exp. I must say I dislike using ASFLAGS as in
ld-frv/tls.exp; it seems more error-prone since it has to be restored at
every return. So I went the other route and added a ld_assemble_flags
function. I'll give you some time to object to this version and check it
in as preapproved later today if I don't hear otherwise.


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: as-flags.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20110511/508bdcbf/attachment.ksh>


More information about the Binutils mailing list