From e3f2db7fa69d2c1f4c7dbee442da6b262c706700 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 3 Mar 2003 20:00:35 +0000 Subject: * 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/ldfile.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ld/ldfile.h') diff --git a/ld/ldfile.h b/ld/ldfile.h index 050a989..0bfea7c 100644 --- a/ld/ldfile.h +++ b/ld/ldfile.h @@ -1,12 +1,12 @@ /* ldfile.h - - Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002 + Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003 Free Software Foundation, Inc. This file is part of GLD, the Gnu Linker. GLD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 1, or (at your option) + the Free Software Foundation; either version 2, or (at your option) any later version. GLD is distributed in the hope that it will be useful, @@ -37,6 +37,8 @@ typedef struct search_dirs { const char *name; /* TRUE if this is from the command line. */ bfd_boolean cmdline; + /* true if this is from within the sys-root. */ + bfd_boolean sysrooted; } search_dirs_type; extern search_dirs_type *search_head; -- cgit v1.1