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