This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SEARCH_DIR and path with '@'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]