OSDN Git Service

* ldfile.h (struct search_dirs): Added sysrooted field.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 3 Mar 2003 20:00:35 +0000 (20:00 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 3 Mar 2003 20:00:35 +0000 (20:00 +0000)
commitdf9076abf90ec3d9d99be3b7772b8e9d9153bea5
tree005c9b6aa1272f13eb19b98c8a329b4ed0fc12f8
parent6ac3f544aa90871666c7b99b814bcbe8d6d73a80
* 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.
ld/ChangeLog
ld/ld.texinfo
ld/ldfile.c
ld/ldfile.h
ld/ldlang.c
ld/ldlang.h