133965Sjdp/* ldfile.h -
2130561Sobrien   Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003, 2004
378828Sobrien   Free Software Foundation, Inc.
433965Sjdp
533965Sjdp   This file is part of GLD, the Gnu Linker.
633965Sjdp
733965Sjdp   GLD is free software; you can redistribute it and/or modify
833965Sjdp   it under the terms of the GNU General Public License as published by
9130561Sobrien   the Free Software Foundation; either version 2, or (at your option)
1033965Sjdp   any later version.
1133965Sjdp
1233965Sjdp   GLD is distributed in the hope that it will be useful,
1333965Sjdp   but WITHOUT ANY WARRANTY; without even the implied warranty of
1433965Sjdp   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1533965Sjdp   GNU General Public License for more details.
1633965Sjdp
1733965Sjdp   You should have received a copy of the GNU General Public License
1833965Sjdp   along with GLD; see the file COPYING.  If not, write to
19218822Sdim   the Free Software Foundation, 51 Franklin Street - Fifth Floor,
20218822Sdim   Boston, MA 02110-1301, USA.  */
2133965Sjdp
2277298Sobrien#ifndef LDFILE_H
2377298Sobrien#define LDFILE_H
2477298Sobrien
2533965Sjdpextern const char *ldfile_input_filename;
26130561Sobrienextern bfd_boolean ldfile_assumed_script;
2733965Sjdpextern unsigned long ldfile_output_machine;
2833965Sjdpextern enum bfd_architecture ldfile_output_architecture;
2933965Sjdpextern const char *ldfile_output_machine_name;
3033965Sjdp
3133965Sjdp/* Structure used to hold the list of directories to search for
3233965Sjdp   libraries.  */
3333965Sjdp
3477298Sobrientypedef struct search_dirs {
3533965Sjdp  /* Next directory on list.  */
3633965Sjdp  struct search_dirs *next;
3733965Sjdp  /* Name of directory.  */
3833965Sjdp  const char *name;
39130561Sobrien  /* TRUE if this is from the command line.  */
40130561Sobrien  bfd_boolean cmdline;
41130561Sobrien  /* true if this is from within the sys-root.  */
42130561Sobrien  bfd_boolean sysrooted;
4333965Sjdp} search_dirs_type;
4433965Sjdp
4533965Sjdpextern search_dirs_type *search_head;
4633965Sjdp
47130561Sobrienextern void ldfile_add_arch
48130561Sobrien  (const char *);
49130561Sobrienextern void ldfile_add_library_path
50130561Sobrien  (const char *, bfd_boolean cmdline);
51130561Sobrienextern void ldfile_open_command_file
52130561Sobrien  (const char *name);
53130561Sobrienextern void ldfile_open_file
54130561Sobrien  (struct lang_input_statement_struct *);
55130561Sobrienextern bfd_boolean ldfile_try_open_bfd
56130561Sobrien  (const char *, struct lang_input_statement_struct *);
57130561Sobrienextern void ldfile_set_output_arch
58130561Sobrien  (const char *, enum bfd_architecture);
59130561Sobrienextern bfd_boolean ldfile_open_file_search
60130561Sobrien  (const char *arch, struct lang_input_statement_struct *,
61130561Sobrien   const char *lib, const char *suffix);
6277298Sobrien
6377298Sobrien#endif
64