| 1 | /* ldmain.h - |
| 2 | Copyright 1991, 1992 Free Software Foundation, Inc. |
| 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, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | |
| 20 | #ifndef LDMAIN_H |
| 21 | #define LDMAIN_H |
| 22 | |
| 23 | extern char *program_name; |
| 24 | extern bfd *output_bfd; |
| 25 | extern char *default_target; |
| 26 | extern boolean trace_files; |
| 27 | extern boolean trace_file_tries; |
| 28 | extern boolean write_map; |
| 29 | extern int g_switch_value; |
| 30 | extern unsigned int commons_pending; |
| 31 | extern const char *output_filename; |
| 32 | extern char lprefix; |
| 33 | extern unsigned int total_files_seen; |
| 34 | extern unsigned int total_symbols_seen; |
| 35 | |
| 36 | extern void enter_global_ref PARAMS ((asymbol **, CONST char *)); |
| 37 | extern void ldmain_open_file_read_symbol |
| 38 | PARAMS ((struct lang_input_statement_struct *)); |
| 39 | extern void refize PARAMS ((ldsym_type *sp, asymbol **nlist_p)); |
| 40 | extern void add_ysym PARAMS ((char *)); |
| 41 | |
| 42 | #endif |