Browse Source

* options.h (class General_options): Add --noinhibit-exec option.

* main.cc (main): Check --noinhibit-exec.
msnyder-reverse-20080609-branch
Ian Lance Taylor 19 years ago
parent
commit
cdb0b8f565
  1. 3
      gold/ChangeLog
  2. 5
      gold/main.cc
  3. 3
      gold/options.h

3
gold/ChangeLog

@ -1,5 +1,8 @@
2008-04-08 Ian Lance Taylor <iant@google.com> 2008-04-08 Ian Lance Taylor <iant@google.com>
* options.h (class General_options): Add --noinhibit-exec option.
* main.cc (main): Check --noinhibit-exec.
* options.h (class General_options): Define --wrap as a special * options.h (class General_options): Define --wrap as a special
option. Add wrap_symbols_ field. option. Add wrap_symbols_ field.
(General_options::any_wrap_symbols): New function. (General_options::any_wrap_symbols): New function.

5
gold/main.cc

@ -220,5 +220,8 @@ main(int argc, char** argv)
layout.print_stats(); layout.print_stats();
} }
gold_exit(errors.error_count() == 0); // If the user used --noinhibit-exec, we force the exit status to be
// successful. This is compatible with GNU ld.
gold_exit(errors.error_count() == 0
|| parameters->options().noinhibit_exec());
} }

3
gold/options.h

@ -538,6 +538,9 @@ class General_options
DEFINE_string(m, options::EXACTLY_ONE_DASH, 'm', "", DEFINE_string(m, options::EXACTLY_ONE_DASH, 'm', "",
N_("Ignored for compatibility"), N_("EMULATION")); N_("Ignored for compatibility"), N_("EMULATION"));
DEFINE_bool(noinhibit_exec, options::TWO_DASHES, '\0', false,
N_("Create an output file even if errors occur"), NULL);
DEFINE_string(output, options::TWO_DASHES, 'o', "a.out", DEFINE_string(output, options::TWO_DASHES, 'o', "a.out",
N_("Set output file name"), N_("FILE")); N_("Set output file name"), N_("FILE"));

Loading…
Cancel
Save