]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* ldmain.h - |
219d1afa | 2 | Copyright (C) 1991-2018 Free Software Foundation, Inc. |
252b5132 | 3 | |
f96b4a7b | 4 | This file is part of the GNU Binutils. |
252b5132 | 5 | |
f96b4a7b | 6 | This program is free software; you can redistribute it and/or modify |
252b5132 | 7 | it under the terms of the GNU General Public License as published by |
f96b4a7b NC |
8 | the Free Software Foundation; either version 3 of the License, or |
9 | (at your option) any later version. | |
252b5132 | 10 | |
f96b4a7b | 11 | This program is distributed in the hope that it will be useful, |
252b5132 RH |
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 | |
f96b4a7b NC |
17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
19 | MA 02110-1301, USA. */ | |
252b5132 RH |
20 | |
21 | #ifndef LDMAIN_H | |
22 | #define LDMAIN_H | |
23 | ||
24 | extern char *program_name; | |
e2243057 | 25 | extern const char *ld_sysroot; |
3fe38064 NC |
26 | extern char *ld_canon_sysroot; |
27 | extern int ld_canon_sysroot_len; | |
53d25da6 AM |
28 | extern FILE *saved_script_handle; |
29 | extern FILE *previous_script_handle; | |
30 | extern bfd_boolean force_make_executable; | |
252b5132 | 31 | extern char *default_target; |
b34976b6 | 32 | extern bfd_boolean trace_files; |
cd6f1cf3 | 33 | extern bfd_boolean verbose; |
b34976b6 | 34 | extern bfd_boolean version_printed; |
b34976b6 | 35 | extern bfd_boolean demangling; |
252b5132 RH |
36 | extern int g_switch_value; |
37 | extern const char *output_filename; | |
38 | extern struct bfd_link_info link_info; | |
8aae64e6 | 39 | extern int overflow_cutoff_limit; |
252b5132 | 40 | |
4f9d22a0 L |
41 | #define RELAXATION_DISABLED_BY_DEFAULT \ |
42 | (link_info.disable_target_specific_optimizations < 0) | |
43 | #define RELAXATION_DISABLED_BY_USER \ | |
13761a11 | 44 | (link_info.disable_target_specific_optimizations > 1) |
4f9d22a0 | 45 | #define RELAXATION_ENABLED \ |
13761a11 NC |
46 | (link_info.disable_target_specific_optimizations == 0 \ |
47 | || link_info.disable_target_specific_optimizations == 1) | |
48 | #define RELAXATION_ENABLED_BY_USER \ | |
4f9d22a0 | 49 | (link_info.disable_target_specific_optimizations == 0) |
13761a11 | 50 | #define TARGET_ENABLE_RELAXATION \ |
4f9d22a0 | 51 | do { link_info.disable_target_specific_optimizations = 1; } while (0) |
13761a11 NC |
52 | #define DISABLE_RELAXATION \ |
53 | do { link_info.disable_target_specific_optimizations = 2; } while (0) | |
4f9d22a0 L |
54 | #define ENABLE_RELAXATION \ |
55 | do { link_info.disable_target_specific_optimizations = 0; } while (0) | |
56 | ||
1579bae1 AM |
57 | extern void add_ysym (const char *); |
58 | extern void add_wrap (const char *); | |
0e86e20e | 59 | extern void add_ignoresym (struct bfd_link_info *, const char *); |
1579bae1 | 60 | extern void add_keepsyms_file (const char *); |
252b5132 RH |
61 | |
62 | #endif |