xref: /dflybsd-src/contrib/binutils-2.34/ld/ldfile.h (revision b52ef7118d1621abed722c5bbbd542210290ecef)
1*fae548d3Szrj /* ldfile.h -
2*fae548d3Szrj    Copyright (C) 1991-2020 Free Software Foundation, Inc.
3*fae548d3Szrj 
4*fae548d3Szrj    This file is part of the GNU Binutils.
5*fae548d3Szrj 
6*fae548d3Szrj    This program is free software; you can redistribute it and/or modify
7*fae548d3Szrj    it under the terms of the GNU General Public License as published by
8*fae548d3Szrj    the Free Software Foundation; either version 3 of the License, or
9*fae548d3Szrj    (at your option) any later version.
10*fae548d3Szrj 
11*fae548d3Szrj    This program is distributed in the hope that it will be useful,
12*fae548d3Szrj    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*fae548d3Szrj    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*fae548d3Szrj    GNU General Public License for more details.
15*fae548d3Szrj 
16*fae548d3Szrj    You should have received a copy of the GNU General Public License
17*fae548d3Szrj    along with this program; if not, write to the Free Software
18*fae548d3Szrj    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19*fae548d3Szrj    MA 02110-1301, USA.  */
20*fae548d3Szrj 
21*fae548d3Szrj #ifndef LDFILE_H
22*fae548d3Szrj #define LDFILE_H
23*fae548d3Szrj 
24*fae548d3Szrj extern bfd_boolean ldfile_assumed_script;
25*fae548d3Szrj extern unsigned long ldfile_output_machine;
26*fae548d3Szrj extern enum bfd_architecture ldfile_output_architecture;
27*fae548d3Szrj extern const char *ldfile_output_machine_name;
28*fae548d3Szrj 
29*fae548d3Szrj /* Structure used to hold the list of directories to search for
30*fae548d3Szrj    libraries.  */
31*fae548d3Szrj 
32*fae548d3Szrj typedef struct search_dirs {
33*fae548d3Szrj   /* Next directory on list.  */
34*fae548d3Szrj   struct search_dirs *next;
35*fae548d3Szrj   /* Name of directory.  */
36*fae548d3Szrj   const char *name;
37*fae548d3Szrj   /* TRUE if this is from the command line.  */
38*fae548d3Szrj   bfd_boolean cmdline;
39*fae548d3Szrj } search_dirs_type;
40*fae548d3Szrj 
41*fae548d3Szrj extern search_dirs_type *search_head;
42*fae548d3Szrj 
43*fae548d3Szrj extern void ldfile_add_arch
44*fae548d3Szrj   (const char *);
45*fae548d3Szrj extern void ldfile_add_library_path
46*fae548d3Szrj   (const char *, bfd_boolean cmdline);
47*fae548d3Szrj extern void ldfile_open_command_file
48*fae548d3Szrj   (const char *name);
49*fae548d3Szrj extern void ldfile_open_script_file
50*fae548d3Szrj   (const char *name);
51*fae548d3Szrj extern void ldfile_open_default_command_file
52*fae548d3Szrj   (const char *name);
53*fae548d3Szrj extern void ldfile_open_file
54*fae548d3Szrj   (struct lang_input_statement_struct *);
55*fae548d3Szrj extern bfd_boolean ldfile_try_open_bfd
56*fae548d3Szrj   (const char *, struct lang_input_statement_struct *);
57*fae548d3Szrj extern void ldfile_set_output_arch
58*fae548d3Szrj   (const char *, enum bfd_architecture);
59*fae548d3Szrj extern bfd_boolean ldfile_open_file_search
60*fae548d3Szrj   (const char *arch, struct lang_input_statement_struct *,
61*fae548d3Szrj    const char *lib, const char *suffix);
62*fae548d3Szrj 
63*fae548d3Szrj #endif
64