2 Copyright 1991, 92, 93, 94, 95, 2000 Free Software Foundation, Inc.
4 This file is part of GLD, the Gnu Linker.
6 GLD is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GLD is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GLD; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 extern const char *ldfile_input_filename
;
24 extern boolean ldfile_assumed_script
;
25 extern unsigned long ldfile_output_machine
;
26 extern enum bfd_architecture ldfile_output_architecture
;
27 extern const char *ldfile_output_machine_name
;
29 /* Structure used to hold the list of directories to search for
32 typedef struct search_dirs
34 /* Next directory on list. */
35 struct search_dirs
*next
;
36 /* Name of directory. */
38 /* true if this is from the command line. */
42 extern search_dirs_type
*search_head
;
44 extern void ldfile_add_arch
PARAMS ((CONST
char *));
45 extern void ldfile_add_library_path
PARAMS ((const char *, boolean cmdline
));
46 extern void ldfile_open_command_file
PARAMS ((const char *name
));
47 extern void ldfile_open_file
PARAMS ((struct lang_input_statement_struct
*));
48 extern boolean ldfile_try_open_bfd
49 PARAMS ((const char *, struct lang_input_statement_struct
*));
50 extern FILE *ldfile_find_command_file
51 PARAMS ((const char *name
, const char *extend
));
52 extern void ldfile_set_output_arch
PARAMS ((CONST
char *));
53 extern boolean ldfile_open_file_search
54 PARAMS ((const char *arch
, struct lang_input_statement_struct
*,
55 const char *lib
, const char *suffix
));