2 Copyright (C) 1991-2024 Free Software Foundation, Inc.
4 This file is part of the GNU Binutils.
6 This program 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 3 of the License, or
9 (at your option) any later version.
11 This program 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.
16 You should have received a copy of the GNU General Public License
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. */
24 extern char *program_name
;
25 extern const char *ld_sysroot
;
26 extern char *ld_canon_sysroot
;
27 extern int ld_canon_sysroot_len
;
28 extern FILE *saved_script_handle
;
29 extern FILE *previous_script_handle
;
30 extern bool force_make_executable
;
31 extern char *default_target
;
32 extern unsigned int trace_files
;
34 extern bool version_printed
;
35 extern bool demangling
;
36 extern int g_switch_value
;
37 extern const char *output_filename
;
38 extern struct bfd_link_info link_info
;
39 extern int overflow_cutoff_limit
;
40 #if SUPPORT_ERROR_HANDLING_SCRIPT
41 extern char *error_handling_script
;
44 #define RELAXATION_DISABLED_BY_DEFAULT \
45 (link_info.disable_target_specific_optimizations < 0)
46 #define RELAXATION_DISABLED_BY_USER \
47 (link_info.disable_target_specific_optimizations > 1)
48 #define RELAXATION_ENABLED \
49 (link_info.disable_target_specific_optimizations == 0 \
50 || link_info.disable_target_specific_optimizations == 1)
51 #define RELAXATION_ENABLED_BY_USER \
52 (link_info.disable_target_specific_optimizations == 0)
53 #define TARGET_ENABLE_RELAXATION \
54 do { link_info.disable_target_specific_optimizations = 1; } while (0)
55 #define DISABLE_RELAXATION \
56 do { link_info.disable_target_specific_optimizations = 2; } while (0)
57 #define ENABLE_RELAXATION \
58 do { link_info.disable_target_specific_optimizations = 0; } while (0)
60 extern void add_ysym (const char *);
61 extern void add_wrap (const char *);
62 extern void add_ignoresym (struct bfd_link_info
*, const char *);
63 extern void add_keepsyms_file (const char *);
64 extern void track_dependency_files (const char *);