2013-05-06 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / ld / ldfile.h
CommitLineData
252b5132 1/* ldfile.h -
dab69f68
AM
2 Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003, 2004, 2005,
3 2007, 2012 Free Software Foundation, Inc.
252b5132 4
f96b4a7b 5 This file is part of the GNU Binutils.
252b5132 6
f96b4a7b 7 This program is free software; you can redistribute it and/or modify
252b5132 8 it under the terms of the GNU General Public License as published by
f96b4a7b
NC
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
252b5132 11
f96b4a7b 12 This program is distributed in the hope that it will be useful,
252b5132
RH
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
f96b4a7b
NC
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
252b5132 21
b71e2778
AM
22#ifndef LDFILE_H
23#define LDFILE_H
24
b34976b6 25extern bfd_boolean ldfile_assumed_script;
252b5132
RH
26extern unsigned long ldfile_output_machine;
27extern enum bfd_architecture ldfile_output_architecture;
28extern const char *ldfile_output_machine_name;
29
30/* Structure used to hold the list of directories to search for
31 libraries. */
32
89cdebba 33typedef struct search_dirs {
252b5132
RH
34 /* Next directory on list. */
35 struct search_dirs *next;
36 /* Name of directory. */
37 const char *name;
b34976b6
AM
38 /* TRUE if this is from the command line. */
39 bfd_boolean cmdline;
252b5132
RH
40} search_dirs_type;
41
42extern search_dirs_type *search_head;
43
b34976b6 44extern void ldfile_add_arch
1579bae1 45 (const char *);
b34976b6 46extern void ldfile_add_library_path
1579bae1 47 (const char *, bfd_boolean cmdline);
b34976b6 48extern void ldfile_open_command_file
1579bae1 49 (const char *name);
7d24f02c
KH
50extern void ldfile_open_default_command_file
51 (const char *name);
b34976b6 52extern void ldfile_open_file
1579bae1 53 (struct lang_input_statement_struct *);
b34976b6 54extern bfd_boolean ldfile_try_open_bfd
1579bae1 55 (const char *, struct lang_input_statement_struct *);
b34976b6 56extern void ldfile_set_output_arch
5e2f1575 57 (const char *, enum bfd_architecture);
b34976b6 58extern bfd_boolean ldfile_open_file_search
1579bae1
AM
59 (const char *arch, struct lang_input_statement_struct *,
60 const char *lib, const char *suffix);
b71e2778
AM
61
62#endif
This page took 0.594896 seconds and 4 git commands to generate.