RFA/RFC: Enable both gold and ld in a single toolchain

Andreas Schwab schwab@redhat.com
Fri Mar 5 09:37:00 GMT 2010


Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:

>> @@ -52,36 +86,65 @@
>>      ;;
>>  esac
>>  
>> -case "$original" in
>> -  ../*)
>> -    # compute absolute path of the location of this script
>> +case x"$original" in
>
> Why that x here?  The x used in "test" is to avoid leading hyphens
> to let old test programs confuse them with options like -f.  This is not
> needed for case.

And you don't even need the quotes.

>> +  x)
>> +    echo "$invoked: executable not configured"
>> +    exit -1
>
> I don't know whether -1 is portable for shell exit.

POSIX only knows about 0-255 anyway.

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."



More information about the Binutils mailing list