2000-10-09 Kazu Hirata <kazu@hxi.com>
[deliverable/binutils-gdb.git] / ld / ldfile.h
CommitLineData
252b5132 1/* ldfile.h -
b71e2778 2 Copyright 1991, 92, 93, 94, 95, 2000 Free Software Foundation, Inc.
252b5132
RH
3
4 This file is part of GLD, the Gnu Linker.
5
6 GLD is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
9 any later version.
10
11 GLD is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GLD; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
b71e2778
AM
20#ifndef LDFILE_H
21#define LDFILE_H
22
252b5132
RH
23extern const char *ldfile_input_filename;
24extern boolean ldfile_assumed_script;
25extern unsigned long ldfile_output_machine;
26extern enum bfd_architecture ldfile_output_architecture;
27extern const char *ldfile_output_machine_name;
28
29/* Structure used to hold the list of directories to search for
30 libraries. */
31
89cdebba 32typedef struct search_dirs {
252b5132
RH
33 /* Next directory on list. */
34 struct search_dirs *next;
35 /* Name of directory. */
36 const char *name;
37 /* true if this is from the command line. */
38 boolean cmdline;
39} search_dirs_type;
40
41extern search_dirs_type *search_head;
42
252b5132
RH
43extern void ldfile_add_arch PARAMS ((CONST char *));
44extern void ldfile_add_library_path PARAMS ((const char *, boolean cmdline));
45extern void ldfile_open_command_file PARAMS ((const char *name));
46extern void ldfile_open_file PARAMS ((struct lang_input_statement_struct *));
47extern boolean ldfile_try_open_bfd
48 PARAMS ((const char *, struct lang_input_statement_struct *));
49extern FILE *ldfile_find_command_file
50 PARAMS ((const char *name, const char *extend));
51extern void ldfile_set_output_arch PARAMS ((CONST char *));
344a211f 52extern boolean ldfile_open_file_search
f5619cc2 53 PARAMS ((const char *arch, struct lang_input_statement_struct *,
344a211f 54 const char *lib, const char *suffix));
b71e2778
AM
55
56#endif
This page took 0.05993 seconds and 4 git commands to generate.