Move disable_target_specific_optimizations to bfd_link_info
[deliverable/binutils-gdb.git] / ld / ldmain.h
1 /* ldmain.h -
2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2002, 2003, 2004,
3 2005, 2007, 2008, 2009, 2012 Free Software Foundation, Inc.
4
5 This file is part of the GNU Binutils.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
21
22 #ifndef LDMAIN_H
23 #define LDMAIN_H
24
25 extern char *program_name;
26 extern const char *ld_sysroot;
27 extern char *ld_canon_sysroot;
28 extern int ld_canon_sysroot_len;
29 extern FILE *saved_script_handle;
30 extern FILE *previous_script_handle;
31 extern bfd_boolean force_make_executable;
32 extern char *default_target;
33 extern bfd_boolean trace_files;
34 extern bfd_boolean verbose;
35 extern bfd_boolean version_printed;
36 extern bfd_boolean demangling;
37 extern int g_switch_value;
38 extern const char *output_filename;
39 extern struct bfd_link_info link_info;
40 extern int overflow_cutoff_limit;
41
42 #define RELAXATION_DISABLED_BY_DEFAULT \
43 (link_info.disable_target_specific_optimizations < 0)
44 #define RELAXATION_DISABLED_BY_USER \
45 (link_info.disable_target_specific_optimizations > 0)
46 #define RELAXATION_ENABLED \
47 (link_info.disable_target_specific_optimizations == 0)
48 #define DISABLE_RELAXATION \
49 do { link_info.disable_target_specific_optimizations = 1; } while (0)
50 #define ENABLE_RELAXATION \
51 do { link_info.disable_target_specific_optimizations = 0; } while (0)
52
53 extern void add_ysym (const char *);
54 extern void add_wrap (const char *);
55 extern void add_ignoresym (struct bfd_link_info *, const char *);
56 extern void add_keepsyms_file (const char *);
57
58 #endif
This page took 0.032994 seconds and 5 git commands to generate.