ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define. (main): Initialize them.

ldfile.c: Include pathnames.h. (is_sysrooted_pathname): New. (ldfile_add_library_path): Use it.
  (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.
  Don't search_dirs if given an absolute pathname.
  (ldfile_open_file): Issue error message for sysrooted	absolute pathnames.
This commit is contained in:
Nick Clifton
2003-03-25 10:29:28 +00:00
parent 2cf6873cae
commit 3fe38064ba
6 changed files with 105 additions and 41 deletions

View File

@@ -24,6 +24,8 @@
extern char *program_name;
extern char *ld_sysroot;
extern char *ld_canon_sysroot;
extern int ld_canon_sysroot_len;
extern bfd *output_bfd;
extern char *default_target;
extern bfd_boolean trace_files;
@@ -37,6 +39,6 @@ extern struct bfd_link_info link_info;
extern void add_ysym PARAMS ((const char *));
extern void add_wrap PARAMS ((const char *));
extern void add_keepsyms_file PARAMS ((const char *filename));
extern void add_keepsyms_file PARAMS ((const char *));
#endif