diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-24 11:09:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-24 11:09:28 +0000 |
commit | 4f9d22a0b15a371db7df4b41c1633fde25932ff1 (patch) | |
tree | aa6979c634219b862efa215bac762baf06d62365 /ld/ldmain.c | |
parent | 35c813e2242319efee1bad5c7cdd6e7e224ce94e (diff) | |
download | gdb-4f9d22a0b15a371db7df4b41c1633fde25932ff1.zip gdb-4f9d22a0b15a371db7df4b41c1633fde25932ff1.tar.gz gdb-4f9d22a0b15a371db7df4b41c1633fde25932ff1.tar.bz2 |
Move disable_target_specific_optimizations to bfd_link_info
include/
* bfdlink.h (bfd_link_info): Add
disable_target_specific_optimizations.
ld/
* ld.h (command_line): Remove
disable_target_specific_optimizations.
(RELAXATION_DISABLED_BY_DEFAULT): Removed.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.
* ldmain.c (main): Updated.
* ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index a784670..3ba19b9 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -260,11 +260,11 @@ main (int argc, char **argv) config.make_executable = TRUE; config.magic_demand_paged = TRUE; config.text_read_only = TRUE; + link_info.disable_target_specific_optimizations = -1; command_line.warn_mismatch = TRUE; command_line.warn_search_mismatch = TRUE; command_line.check_section_addresses = -1; - command_line.disable_target_specific_optimizations = -1; /* We initialize DEMANGLING based on the environment variable COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the @@ -954,7 +954,7 @@ multiple_definition (struct bfd_link_info *info, if (RELAXATION_ENABLED) { einfo (_("%P: Disabling relaxation: it will not work with multiple definitions\n")); - command_line.disable_target_specific_optimizations = -1; + link_info.disable_target_specific_optimizations = -1; } return TRUE; |