Back to index

cell-binutils  2.17cvs20070401
ldfile.h
Go to the documentation of this file.
00001 /* ldfile.h -
00002    Copyright 1991, 1992, 1993, 1994, 1995, 2000, 2002, 2003, 2004
00003    Free Software Foundation, Inc.
00004 
00005    This file is part of GLD, the Gnu Linker.
00006 
00007    GLD is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    GLD is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GLD; see the file COPYING.  If not, write to
00019    the Free Software Foundation, 51 Franklin Street - Fifth Floor,
00020    Boston, MA 02110-1301, USA.  */
00021 
00022 #ifndef LDFILE_H
00023 #define LDFILE_H
00024 
00025 extern const char *ldfile_input_filename;
00026 extern bfd_boolean ldfile_assumed_script;
00027 extern unsigned long ldfile_output_machine;
00028 extern enum bfd_architecture ldfile_output_architecture;
00029 extern const char *ldfile_output_machine_name;
00030 
00031 /* Structure used to hold the list of directories to search for
00032    libraries.  */
00033 
00034 typedef struct search_dirs {
00035   /* Next directory on list.  */
00036   struct search_dirs *next;
00037   /* Name of directory.  */
00038   const char *name;
00039   /* TRUE if this is from the command line.  */
00040   bfd_boolean cmdline;
00041   /* true if this is from within the sys-root.  */
00042   bfd_boolean sysrooted;
00043 } search_dirs_type;
00044 
00045 extern search_dirs_type *search_head;
00046 
00047 extern void ldfile_add_arch
00048   (const char *);
00049 extern void ldfile_add_library_path
00050   (const char *, bfd_boolean cmdline);
00051 extern void ldfile_open_command_file
00052   (const char *name);
00053 extern void ldfile_open_file
00054   (struct lang_input_statement_struct *);
00055 extern bfd_boolean ldfile_try_open_bfd
00056   (const char *, struct lang_input_statement_struct *);
00057 extern void ldfile_set_output_arch
00058   (const char *, enum bfd_architecture);
00059 extern bfd_boolean ldfile_open_file_search
00060   (const char *arch, struct lang_input_statement_struct *,
00061    const char *lib, const char *suffix);
00062 
00063 #endif