From 0e11a417df9174426299028994306df829a217ae Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 8 Mar 2012 05:29:31 +0000 Subject: PR ld/10340 * ldfile.c (is_sysrooted_pathname): Remove notsame param. (ldfile_add_library_path): Don't set sysrooted flag. (ldfile_open_file_search): Likewise, and don't copy them. (try_open): Delete exten and code handling such. Add sysrooted param and return whether path is in sysroot. (ldfile_find_command_file): Delete extend param. Add sysrooted param. Rename local var. Update try_open calls. (ldfile_open_command_file_1): Pass sysrooted to lex_push_file. * ldfile.h (search_dirs_type): Remove sysrooted field. * ldlang.c (new_afile): Always set sysrooted from input_flags. (load_symbols): Don't set input_flags.sysrooted. * ldlang.h (struct lang_input_statement_flags): Revise sysrooted comment. * ldlex.h (lex_push_file): Update prototype. * ldlex.l (sysrooted_stack): New array. (EOF): Pop input_flags.sysrooted. (lex_push_file): Add sysrooted param. Save and set input_flags.sysrooted. --- ld/ldfile.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'ld/ldfile.h') diff --git a/ld/ldfile.h b/ld/ldfile.h index 1736aafe74..945609250a 100644 --- a/ld/ldfile.h +++ b/ld/ldfile.h @@ -37,8 +37,6 @@ 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.2.1