aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-02 21:30:57 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-02 21:30:57 +0000
commit0cd82d00da11d624087fada13fc68db95b4d5e63 (patch)
tree2f955b69c0bf7aafa6aadfd580b15f563c12d41f /ld/ldfile.h
parentebd6f11797d7beb545cd48111210b07fdec806ce (diff)
downloadgdb-0cd82d00da11d624087fada13fc68db95b4d5e63.zip
gdb-0cd82d00da11d624087fada13fc68db95b4d5e63.tar.gz
gdb-0cd82d00da11d624087fada13fc68db95b4d5e63.tar.bz2
* ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
field. (search_head): Declare. (ldfile_add_library_path): Add new cmdline argument in prototype. * ldfile.c (search_head): Make non-static. (search_dirs_type): Move to ldfile.h. (ldfile_add_library_path): Accept cmdline argument, and save it. * lexsup.c (parse_args): Pass true for new cmdline argument of ldfile_add_library_path. (set_default_dirlist): Likewise. * ldmain.c (check_for_scripts_dir): Pass false for new cmdline argument of ldfile_add_library_path. * ldgram.y (ifile_p1): Likewise.
Diffstat (limited to 'ld/ldfile.h')
-rw-r--r--ld/ldfile.h37
1 files changed, 28 insertions, 9 deletions
diff --git a/ld/ldfile.h b/ld/ldfile.h
index f4ad289..f351f6f 100644
--- a/ld/ldfile.h
+++ b/ld/ldfile.h
@@ -1,6 +1,5 @@
/* ldfile.h -
-
- Copyright (C) 1991 Free Software Foundation, Inc.
+ Copyright 1991, 1992 Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -18,10 +17,30 @@
along with GLD; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
-PROTO(void,ldfile_add_arch,(CONST char *CONST));
-PROTO(void,ldfile_add_library_path,(char *));
-PROTO(void,ldfile_open_command_file,(char *name));
-PROTO(void,ldfile_open_file,(struct lang_input_statement_struct *));
-
+extern char *ldfile_input_filename;
+extern unsigned long ldfile_output_machine;
+extern enum bfd_architecture ldfile_output_architecture;
+extern const char *ldfile_output_machine_name;
+
+/* Structure used to hold the list of directories to search for
+ libraries. */
+
+typedef struct search_dirs
+{
+ /* Next directory on list. */
+ struct search_dirs *next;
+ /* Name of directory. */
+ const char *name;
+ /* true if this is from the command line. */
+ boolean cmdline;
+} search_dirs_type;
+
+extern search_dirs_type *search_head;
+
+void ldfile_add_arch PARAMS ((CONST char *));
+void ldfile_add_library_path PARAMS ((const char *, boolean cmdline));
+void ldfile_open_command_file PARAMS ((char *name));
+void ldfile_open_file PARAMS ((struct lang_input_statement_struct *));
+FILE *ldfile_find_command_file PARAMS ((char *name, char *extend));
+
+void ldfile_set_output_arch PARAMS ((CONST char *));