SEARCH_DIR and path with '@'
Alan Modra
amodra@bigpond.net.au
Wed Mar 20 21:35:00 GMT 2002
On Wed, Mar 20, 2002 at 10:06:14PM -0600, Albert Chin wrote:
> While building an arm-elf cross-compiler hosted on HP-UX, arm-elf-ld
> gives the error:
> built in linker script:6: ignoring invalid character `@' in expression
>
> This is because the path used contains a `@'. I initially thought this
> was coming from the paths used in SEARCH_DIR() in
> $prefix/arm-elf/lib/ldscripts but removing the `@' in all paths did
> not solve the problem. Running a strings on the ld binary reveals some
> SEARCH_DIR() commands in the binary.
Yes, editing those scripts doesn't help much when ld has the script
built in.
> So, I quoted the path with the patch below. It's against 2.12.
>
> 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
>
> * ld/genscripts.sh: Quote path in SEARCH_DIR to preserve
> special characters.
Applying to mainline. Thanks.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list