* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / ldfile.h
blob1736aafe7400650d39ebdeb246f63726e9a5e931
1 /* ldfile.h -
2 Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003, 2004, 2005,
3 2007, 2012 Free Software Foundation, Inc.
5 This file is part of the GNU Binutils.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program 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.
17 You should have received a copy of the GNU General Public License
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. */
22 #ifndef LDFILE_H
23 #define LDFILE_H
25 extern bfd_boolean ldfile_assumed_script;
26 extern unsigned long ldfile_output_machine;
27 extern enum bfd_architecture ldfile_output_architecture;
28 extern const char *ldfile_output_machine_name;
30 /* Structure used to hold the list of directories to search for
31 libraries. */
33 typedef struct search_dirs {
34 /* Next directory on list. */
35 struct search_dirs *next;
36 /* Name of directory. */
37 const char *name;
38 /* TRUE if this is from the command line. */
39 bfd_boolean cmdline;
40 /* true if this is from within the sys-root. */
41 bfd_boolean sysrooted;
42 } search_dirs_type;
44 extern search_dirs_type *search_head;
46 extern void ldfile_add_arch
47 (const char *);
48 extern void ldfile_add_library_path
49 (const char *, bfd_boolean cmdline);
50 extern void ldfile_open_command_file
51 (const char *name);
52 extern void ldfile_open_default_command_file
53 (const char *name);
54 extern void ldfile_open_file
55 (struct lang_input_statement_struct *);
56 extern bfd_boolean ldfile_try_open_bfd
57 (const char *, struct lang_input_statement_struct *);
58 extern void ldfile_set_output_arch
59 (const char *, enum bfd_architecture);
60 extern bfd_boolean ldfile_open_file_search
61 (const char *arch, struct lang_input_statement_struct *,
62 const char *lib, const char *suffix);
64 #endif