This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld doesn't relocate sysroot if called as tooldir/bin/ld
- From: Nick Clifton <nickc at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>, binutils at sources dot redhat dot com
- Date: 03 Mar 2003 13:19:12 +0000
- Subject: Re: ld doesn't relocate sysroot if called as tooldir/bin/ld
- References: <orwujve001.fsf@free.redhat.lsd.ic.unicamp.br><20030220195633.GA20623@nevyn.them.org><orznojpmoi.fsf@free.redhat.lsd.ic.unicamp.br><20030226142045.GA8999@nevyn.them.org><or3cmau39r.fsf@free.redhat.lsd.ic.unicamp.br><orof4ysk7o.fsf@free.redhat.lsd.ic.unicamp.br>
Hi Alex,
> Index: ld/ChangeLog
> from Alexandre Oliva <aoliva at redhat dot com>
>
> * ldfile.h (struct search_dirs): Added sysrooted field.
> * ldlang.h (struct lang_input_statement_struct): Likewise.
> * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
> (ldfile_open_file_search): Look for sysrooted filename starting
> with / in ld_sysroot instead of in the current directory. Clear
> sysrooted flag if it's found in the current directory. Set it
> from the search directory's sysrooted flag where it is found
> otherwise.
> * ldlang.c (ldlang_sysrooted_script): New static variable.
> (new_afile): Mark search_file_enums as sysrooted if
> ldlang_sysrooted_script.
> (load_symbols): Set ldlang_sysrooted_script according to the
> script's sysrooted field while processing it.
> * ld.texinfo: Document INPUT behavior in sysroot.
Approved - please apply.
Cheers
Nick