]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* ldfile.h - |
5e2f1575 | 2 | Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003, 2004 |
a2b64bed | 3 | Free Software Foundation, Inc. |
252b5132 RH |
4 | |
5 | This file is part of GLD, the Gnu Linker. | |
6 | ||
7 | GLD is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
e3f2db7f | 9 | the Free Software Foundation; either version 2, or (at your option) |
252b5132 RH |
10 | any later version. |
11 | ||
12 | GLD is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GLD; see the file COPYING. If not, write to | |
1579bae1 AM |
19 | the Free Software Foundation, 59 Temple Place - Suite 330, |
20 | Boston, MA 02111-1307, USA. */ | |
252b5132 | 21 | |
b71e2778 AM |
22 | #ifndef LDFILE_H |
23 | #define LDFILE_H | |
24 | ||
252b5132 | 25 | extern const char *ldfile_input_filename; |
b34976b6 | 26 | extern bfd_boolean ldfile_assumed_script; |
252b5132 RH |
27 | extern unsigned long ldfile_output_machine; |
28 | extern enum bfd_architecture ldfile_output_architecture; | |
29 | extern const char *ldfile_output_machine_name; | |
30 | ||
31 | /* Structure used to hold the list of directories to search for | |
32 | libraries. */ | |
33 | ||
89cdebba | 34 | typedef struct search_dirs { |
252b5132 RH |
35 | /* Next directory on list. */ |
36 | struct search_dirs *next; | |
37 | /* Name of directory. */ | |
38 | const char *name; | |
b34976b6 AM |
39 | /* TRUE if this is from the command line. */ |
40 | bfd_boolean cmdline; | |
e3f2db7f AO |
41 | /* true if this is from within the sys-root. */ |
42 | bfd_boolean sysrooted; | |
252b5132 RH |
43 | } search_dirs_type; |
44 | ||
45 | extern search_dirs_type *search_head; | |
46 | ||
b34976b6 | 47 | extern void ldfile_add_arch |
1579bae1 | 48 | (const char *); |
b34976b6 | 49 | extern void ldfile_add_library_path |
1579bae1 | 50 | (const char *, bfd_boolean cmdline); |
b34976b6 | 51 | extern void ldfile_open_command_file |
1579bae1 | 52 | (const char *name); |
b34976b6 | 53 | extern void ldfile_open_file |
1579bae1 | 54 | (struct lang_input_statement_struct *); |
b34976b6 | 55 | extern bfd_boolean ldfile_try_open_bfd |
1579bae1 | 56 | (const char *, struct lang_input_statement_struct *); |
252b5132 | 57 | extern FILE *ldfile_find_command_file |
1579bae1 | 58 | (const char *name, const char *extend); |
b34976b6 | 59 | extern void ldfile_set_output_arch |
5e2f1575 | 60 | (const char *, enum bfd_architecture); |
b34976b6 | 61 | extern bfd_boolean ldfile_open_file_search |
1579bae1 AM |
62 | (const char *arch, struct lang_input_statement_struct *, |
63 | const char *lib, const char *suffix); | |
b71e2778 AM |
64 | |
65 | #endif |