diff options
author | Nick Clifton <nickc@redhat.com> | 2003-03-25 10:29:28 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-03-25 10:29:28 +0000 |
commit | 3fe38064baf3b9afbd892b0df390b3879d9072a9 (patch) | |
tree | 60f7686e039dcb88d3dfecf769ad44fa33dfbb77 /ld/ldmain.h | |
parent | 2cf6873caef1b656aeacdea811c225bdd53e9029 (diff) | |
download | gdb-3fe38064baf3b9afbd892b0df390b3879d9072a9.zip gdb-3fe38064baf3b9afbd892b0df390b3879d9072a9.tar.gz gdb-3fe38064baf3b9afbd892b0df390b3879d9072a9.tar.bz2 |
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.
Diffstat (limited to 'ld/ldmain.h')
-rw-r--r-- | ld/ldmain.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldmain.h b/ld/ldmain.h index 30f872d..d21b3fd 100644 --- a/ld/ldmain.h +++ b/ld/ldmain.h @@ -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 |