summaryrefslogtreecommitdiff
path: root/ld/ldmain.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-03-25 10:29:28 +0000
committerNick Clifton <nickc@redhat.com>2003-03-25 10:29:28 +0000
commit4eb6360e89ca91dfd449364b146c2040db1ad01f (patch)
tree5e2af8dbd1c7b73d1c3f8c7c381eab0e1d7e670f /ld/ldmain.h
parent14f4c216e6491f5b7f7a1b672cc32cf46057140f (diff)
downloadbinutils-redhat-4eb6360e89ca91dfd449364b146c2040db1ad01f.tar.gz
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldmain.h b/ld/ldmain.h
index 30f872d860..d21b3fdbca 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