ldfile.h revision 78828
133965Sjdp/* ldfile.h - 278828Sobrien Copyright 1991, 1992, 1993, 1994, 1995, 2000 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 933965Sjdp the Free Software Foundation; either version 1, 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 1933965Sjdp the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 2033965Sjdp 2177298Sobrien#ifndef LDFILE_H 2277298Sobrien#define LDFILE_H 2377298Sobrien 2433965Sjdpextern const char *ldfile_input_filename; 2533965Sjdpextern boolean ldfile_assumed_script; 2633965Sjdpextern unsigned long ldfile_output_machine; 2733965Sjdpextern enum bfd_architecture ldfile_output_architecture; 2833965Sjdpextern const char *ldfile_output_machine_name; 2933965Sjdp 3033965Sjdp/* Structure used to hold the list of directories to search for 3133965Sjdp libraries. */ 3233965Sjdp 3377298Sobrientypedef struct search_dirs { 3433965Sjdp /* Next directory on list. */ 3533965Sjdp struct search_dirs *next; 3633965Sjdp /* Name of directory. */ 3733965Sjdp const char *name; 3833965Sjdp /* true if this is from the command line. */ 3933965Sjdp boolean cmdline; 4033965Sjdp} search_dirs_type; 4133965Sjdp 4233965Sjdpextern search_dirs_type *search_head; 4333965Sjdp 4433965Sjdpextern void ldfile_add_arch PARAMS ((CONST char *)); 4533965Sjdpextern void ldfile_add_library_path PARAMS ((const char *, boolean cmdline)); 4633965Sjdpextern void ldfile_open_command_file PARAMS ((const char *name)); 4733965Sjdpextern void ldfile_open_file PARAMS ((struct lang_input_statement_struct *)); 4833965Sjdpextern boolean ldfile_try_open_bfd 4933965Sjdp PARAMS ((const char *, struct lang_input_statement_struct *)); 5033965Sjdpextern FILE *ldfile_find_command_file 5133965Sjdp PARAMS ((const char *name, const char *extend)); 5233965Sjdpextern void ldfile_set_output_arch PARAMS ((CONST char *)); 5360484Sobrienextern boolean ldfile_open_file_search 5460484Sobrien PARAMS ((const char *arch, struct lang_input_statement_struct *, 5560484Sobrien const char *lib, const char *suffix)); 5677298Sobrien 5777298Sobrien#endif 58