aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
AgeCommit message (Collapse)AuthorFilesLines
2008-05-06 * options.h (DEFINE_var): Add set_user_set_##varname__.Ian Lance Taylor1-6/+0
(DEFINE_bool_alias): New macro. (class General_options): Define -Bstatic using DEFINE_bool_alias rather than DEFINE_special. Add --undefined as an alias for -z defs. * options.cc (General_options::parse_Bstatic): Remove.
2008-04-17 * errors.cc (Errors::info): New function.Cary Coutant1-8/+7
(gold_info): New function. * errors.h (Errors::info): New function. * gold.h (gold_info): New function. * object.cc (Input_objects::add_object): Print trace output. * options.cc (options::parse_set): New function. (General_options::parse_wrap): Deleted. (General_options::General_options): Deleted initializer. * options.h (options::String_set): New typedef. (options::parse_set): New function. (DEFINE_set): New macro. (General_options::wrap): Changed to use DEFINE_set. Changed callers of any_wrap_symbols and is_wrap_symbol. (General_options::trace, General_options::trace_symbol): New options. (General_options::any_wrap_symbols, General_options::is_wrap_symbol) (General_options::wrap_symbols_): Deleted. * symtab.cc (Symbol_table::add_from_object): Print trace output.
2008-04-17 * options.cc (General_options::parse_V): New function.David S. Miller1-0/+13
* options.h: Add entries for -V and -Qy.
2008-04-11 * options.h (General_options): Add entries for '-Y' andIan Lance Taylor1-4/+27
'-relax'. * options.cc (General_options:finalize): If -Y was used, add those entries to the library path instead of the default "/lib" and "/usr/lib".
2008-04-09 * options.h (class General_options): Define --wrap as a specialIan Lance Taylor1-1/+8
option. Add wrap_symbols_ field. (General_options::any_wrap_symbols): New function. (General_options::is_wrap_symbol): New function. * options.cc (General_options::parse_wrap): New function. (General_options::General_options): Initialize wrap_symbols_. * symtab.cc (Symbol_table::wrap_symbol): New function. (Symbol_table::add_from_object): Handle --wrap. * symtab.h (class Symbol_table): Declare wrap_symbol. * target.h (Target::wrap_char): New function. (Target::Target_info): Add wrap_char field. * i386.cc (Target_i386::i386_info): Initialize wrap_char. * x86_64.cc (Target_x86_64::x86_64_info): Likewise. * testsuite/testfile.cc (Target_test::test_target_info): Likewise.
2008-03-26 PR gold/5986Ian Lance Taylor1-0/+1
Fix problems building gold with gcc 4.3.0. * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define. (gold_error_at_location, gold_warning_at_location): Use it. * configure.ac: Check whether we can compile and use a template function with a printf attribute. * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value when jumping over bytes. * object.cc: Instantiate Object::read_section_data. * debug.h: Include <cstring> * dwarf_reader.cc: Include <algorithm> * main.cc: Include <cstring>. * options.cc: Include <cstring>. * output.cc: Include <cstring>. * script.cc: Include <cstring>. * script.h: Include <string>. * symtab.cc: Include <cstring> and <algorithm>. * target-select.cc: Include <cstring>. * version.cc: Include <string>. * testsuite/testmain.cc: Include <cstdlib>. * configure, config.in: Rebuild.
2008-03-25 * options.cc: Include "../bfd/bfdver.h".Ian Lance Taylor1-0/+6
(options::help): Print bug reporting address.
2008-03-25 * options.cc (options::help): Print list of supported targets.Ian Lance Taylor1-0/+11
* target-select.h: Include <vector>. (class Target_selector): Make machine_, size_, and is_big_endian_ fields const. Add bfd_name_ and instantiated_target_ fields. (Target_selector::Target_selector): Add bfd_name parameter. (Target_selector::recognize): Make non-virtual, call do_recognize. (Target_selector::recognize_by_name): Make non-virtual, call do_recognize_by_name. (Target_selector::supported_names): New function. (Target_selector::bfd_name): New function. (Target_selector::do_instantiate_target): New pure virtual function. (Target_selector::do_recognize): New virtual function. (Target_selector::do_recognize_by_name): New virtual function. (Target_selector::instantiate_target): New private function. (supported_target_names): Declare. * target-select.cc (Target_selector::Target_selector): Update for new parameter and fields. (select_target_by_name): Check that the name matches before calling recognize_by_name. (supported_target_names): New function. * i386.cc (class Target_selector_i386): Update Target_selector constructor call. Remove recognize and recognize_by_name. Add do_instantiate_target. * x86_64.cc (class Target_selector_x86_64): Likewise. * testsuite/testfile.cc (class Target_selector_test): Update for changes to Target_selector.
2008-03-24 * options.cc: Include "demangle.h".Ian Lance Taylor1-2/+39
(parse_optional_string): New function. (parse_long_option): Handle takes_optional_argument. (parse_short_option): Update dash_z initializer. Handle takes_optional_argument. (General_options::General_options): Initialize do_demangle_. (General_options::finalize): Set do_demangle_. Handle demangling style. * options.h (parse_optional_string): Declare. (struct One_option): Add optional_arg field. Update constructor. Update call constructor calls. Add takes_optional_argument function. (DEFINE_var): Add optional_arg__ parameter. Change all callers. (DEFINE_optional_string): Define. (General_options::demangle): Change from DEFINE_bool to DEFINE_optional_string. (General_options::no_demangle): New function. (General_options::do_demangle): New function. (General_options::set_do_demangle): New function. (General_options::execstack_status_): Move definition to end of class definition. (General_options::static_): Likewise. (General_options::do_demangle_): New field. * object.cc (big_endian>::get_symbol_location_info): Call Options::do_demangle, not Options::demangle. * symtab.cc (demangle): Likewise.
2008-03-07Recognize --hash-bucket-empty-fraction.Ian Lance Taylor1-0/+18
2008-03-06Use N_ for option help strings, and call gettext when printing them.Ian Lance Taylor1-3/+3
2008-03-06From Craig Silverstein: accept any string for input format, warn ifIan Lance Taylor1-1/+17
thread options when not supported.
2008-03-04From Craig Silverstein: rework option handling to make it easier toIan Lance Taylor1-976/+535
add a new option.
2008-03-04From Craig Silverstein: rename some option functions in preparationIan Lance Taylor1-1/+1
for reworking option handling.
2008-02-28Support -d/--define-common.Ian Lance Taylor1-1/+15
2008-02-28From Craig Silverstein: Have Parameters point to General_options.Ian Lance Taylor1-29/+0
2008-02-27Implement -q/--emit-relocs.Ian Lance Taylor1-1/+4
2008-02-26From Craig Silverstein: rework handling of Script_options.Ian Lance Taylor1-17/+22
2008-02-26From Craig Silverstein: implement -z max-page-size and -zIan Lance Taylor1-12/+44
common-page-size.
2008-02-26From Craig Silverstein: rename option functions for future optionIan Lance Taylor1-41/+45
handling rewrite.
2008-02-13Implement -Tdata and -Tbss.Ian Lance Taylor1-3/+12
2008-02-13Support selecting target by name.Ian Lance Taylor1-1/+33
2008-02-08Add support for --format binary for input files.Ian Lance Taylor1-15/+40
2008-02-07Support --oformat binary.Ian Lance Taylor1-2/+28
2008-02-07Implement --just-symbols, including -R FILE. Fix symbol values whenIan Lance Taylor1-5/+48
doing a relocatable link.
2008-02-06Initial -r support.Ian Lance Taylor1-0/+3
2008-01-23Parse a SECTIONS clause in a linker script.Ian Lance Taylor1-1/+2
2008-01-15From Andrew Chatham and Craig Silverstein: Add support for versionIan Lance Taylor1-1/+20
scripts.
2008-01-09Support assignments and expressions in linker scripts.Ian Lance Taylor1-13/+25
2008-01-07Report linker script errors with line numbers. Ignore OUTPUT_FORMATIan Lance Taylor1-2/+1
with three arguments, and ignore OUTPUT_ARCH.
2008-01-06Add support for -e and for ENTRY in linker scripts.Ian Lance Taylor1-2/+6
2008-01-04Add -h/-soname option.Ian Lance Taylor1-0/+4
2007-12-08From Craig Silverstein: Fix error message, add this->.Ian Lance Taylor1-1/+1
2007-11-30From Craig Silverstein: Add support for compressing .debug_str section.Ian Lance Taylor1-0/+12
2007-11-22Add threading support.Ian Lance Taylor1-6/+59
2007-11-15From Craig Silverstein: Add --strip-debug-gdb.Ian Lance Taylor1-0/+5
2007-11-15From Craig Silverstein: Add support for --demangle.Ian Lance Taylor1-0/+12
2007-11-14Add heuristics for undefined symbol warnings.Ian Lance Taylor1-1/+1
2007-11-14Default to --allow-shlib-undefined for now.Ian Lance Taylor1-1/+1
2007-11-14Warn about undefined references in shared libraries if we have seenIan Lance Taylor1-0/+9
all the DT_NEEDED entries for that library.
2007-11-14From Craig Silverstein: Rework debug info code a bit, add option forIan Lance Taylor1-0/+4
ODR violations, add test case.
2007-10-30From Craig Silverstein: Implement OPTION in linker scripts.Ian Lance Taylor1-135/+147
2007-10-27From Craig Silverstein and Ian Lance Taylor: Process --script option.Ian Lance Taylor1-28/+83
2007-10-26From Craig Silverstein: Minimal --script implementation.Ian Lance Taylor1-0/+3
2007-10-23Add support for PT_GNU_STACK.Ian Lance Taylor1-2/+58
2007-10-22Implement -Bstatic/-Bdynamic.Ian Lance Taylor1-0/+8
2007-10-18Add support for -Bsymbolic.Ian Lance Taylor1-0/+3
2007-10-17Add infrastructure for threading support.Ian Lance Taylor1-1/+24
2007-10-16From Craig Silverstein: implement -Ttext.Ian Lance Taylor1-23/+27
2007-10-15Fix exit status.Ian Lance Taylor1-3/+3