aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.h
AgeCommit message (Collapse)AuthorFilesLines
2009-09-30 * object.h (class Object): Remove target_ field, and target,Ian Lance Taylor1-8/+31
sized_target, and set_target methods. (Object::sized_target): Remove. (class Sized_relobj): Update declarations. Remove sized_target. * object.cc (Sized_relobj::setup): Remove target parameter. Change all callers. (Input_objects::add_object): Don't do anything with the target. (make_elf_sized_object): Add punconfigured parameter. Change all callers. Set or test parameter target. * dynobj.cc (Sized_dynobj::target): Remove target parameter. Change all callers. * parameters.cc (Parameters::set_target): Change parameter type to be non-const. (Parameters::default_target): Remove. (set_parameters_target): Change parameter type to be non-const. (parameters_force_valid_target): New function. (parameters_clear_target): New function. * parameters.h (class Parameters): Update declarations. Remove default_target method. Add sized_target and clear_target methods. Change target_ to be non-const. (set_parameters_target): Update declaration. (parameters_force_valid_target): Declare. (parameters_clear_target): Declare. * readsyms.cc (Read_symbols::do_read_symbols): Pass punconfigured as NULL if we aren't searching. (Add_symbols::run): Don't check for compatible target. * fileread.cc (Input_file::open_binary): Call parameters_force_valid_target. * gold.cc (queue_middle_tasks): Likewise. * plugin.cc (make_sized_plugin_object): Likewise. Don't call set_target on object. * dynobj.h (class Sized_dynobj): Update declarations. * archive.cc (Archive::get_elf_object_for_member): Return NULL if make_elf_object returns NULL. (Archive::include_member): Don't check whether object target is compatible. * output.cc (Output_section::add_input_section): Get target from parameters. (Output_section::relax_input_section): Likewise. * reloc.cc (Sized_relobj::do_gc_process_relocs): Get target from parameters. (Sized_relobj::do_scan_relocs): Likewise. (Sized_relobj::relocate_sections): Likewise. * resolve.cc (Symbol_table::resolve): Likewise. * symtab.cc (Symbol_table::wrap_symbol): Likewise. Remove object parameter. Change all callers. (Symbol_table::add_from_object): Get target from parameters. (Symbol_table::add_from_relobj): Don't check object target. (Symbol_table::add_from_dynobj): Likewise. (Symbol_table::define_special_symbol): Get target from parameters. * symtab.h (class Symbol_table): Update declaration. * testsuite/binary_unittest.cc (gold_testsuite): Remove target parameter. Change all callers. Clear parameter target. (Binary_test): Test target here. * testsuite/object_unittest.cc (gold_testsuite): Remove target_test_pointer parameter. Change all callers. (Object_test): Test target here.
2009-03-14 * readsyms.cc (Read_symbols::incompatible_warning): New function.Ian Lance Taylor1-0/+4
(Read_symbols::requeue): New function. (Read_symbols::do_read_symbols): If make_elf_object fails because the target type is not configured, and the file was searched for, issue a warning and retry with the next directory. (Add_symbols::run): If the file has an incompatible format, and it was searched for, requeue the Read_symbols task. On error, release the object. * readsyms.h (class Read_symbols): Add dirindex_ field. Add dirindex parameter to constructor. Change all callers. Declare incompatible_warning and requeue. (class Add_symbols): Add dirpath_, dirindex_, mapfile_, input_argument_ and input_group_ fields. Add them to constructor. Change all callers. (class Read_script): Add dirindex_ field. Add it to constructor. Change all callers. * archive.cc (Archive::setup): Remove input_objects parameter. Change all callers. (Archive::get_file_and_offset): Likewise. (Archive::read_all_symbols): Likewise. (Archive::read_symbols): Likewise. (Archive::get_elf_object_for_member): Remove input_objects parameter. Add punconfigured parameter. Change all callers. (Archive::add_symbols): Change return type to bool. Check return value of include_member. (Archive::include_all_members): Likewise. (Archive::include_member): Change return type to bool. Return false if first included object has incompatible target. Set included_member_ field. (Add_archive_symbols::run): If add_symbols returns false, requeue Read_symbols task. * archive.h (class Archive): Add included_member_ field. Initialize it in constructor. Add input_file and searched_for methods. Update declarations. (class Add_archive_symbols): Add dirpath_, dirindex_, and input_argument_ fields. Add them to constructor. Change all callers. * script.cc: Include "target-select.h". (class Parser_closure): Add skip_on_incompatible_target_ and found_incompatible_target_ fields. Add skip_on_incompatible_target parameter to constructor. Change all callers. Add methods skip_on_incompatible_target, clear_skip_on_incompatible_target, found_incompatible_target, and set_found_incompatible_target. (read_input_script): Add dirindex parameter. Change all callers. If parser finds an incompatible target, requeue Read_symbols task. (script_set_symbol): Clear skip_on_incompatible_target in closure. (script_add_assertion, script_parse_option): Likewise. (script_start_sections, script_add_phdr): Likewise. (script_check_output_format): New function. * script.h (read_input_script): Update declaration. * script-c.h (script_check_output_format): Declare. * yyscript.y (file_cmd): Handle OUTPUT_FORMAT. (ignore_cmd): Remove OUTPUT_FORMAT. * fileread.cc (Input_file::Input_file): Add explicit this. (Input_file::will_search_for): New function. (Input_file::open): Add pindex parameter. Change all callers. * fileread.h (class Input_file): Add input_file_argument method. Declare will_search_for. Update declarations. * object.cc (make_elf_object): Add punconfigured parameter. Change all callers. * object.h (class Object): Make input_file public. Add searched_for method. (make_elf_object): Update declaration. * dirsearch.cc (Dirsearch::find): Add pindex parameter. Use it to restart search. * dirsearch.h (class Dirsearch): Update declaration. * options.h (class General_options): Add --warn-search-mismatch. * parameters.cc (Parameters::is_compatible_target): New function. * parameters.h (class Parameters): Declare is_compatible_target. * workqueue.cc (Workqueue::add_blocker): New function. * workqueue.h (class Workqueue): Declare add_blocker.
2008-03-13Update copyright years. Update language files.Ian Lance Taylor1-1/+1
2008-03-13From Craig Silverstein: Implement --debug=files to track file opens,Ian Lance Taylor1-1/+3
and implement --verbose as a synonym.
2008-02-28From Craig Silverstein: Have Parameters point to General_options.Ian Lance Taylor1-275/+77
2008-02-27Implement -q/--emit-relocs.Ian Lance Taylor1-0/+7
2008-02-26From Craig Silverstein: implement -z max-page-size and -zIan Lance Taylor1-0/+19
common-page-size.
2008-02-26From Craig Silverstein: rename option functions for future optionIan Lance Taylor1-3/+3
handling rewrite.
2008-02-06Support creating empty output when there are no input objects.Ian Lance Taylor1-0/+5
2007-12-01Compress all debug sections.Ian Lance Taylor1-8/+19
2007-11-28Don't try to delete the output file if we don't know its name yet.Ian Lance Taylor1-0/+6
2007-11-22Add threading support.Ian Lance Taylor1-0/+28
2007-11-15From Craig Silverstein: Add --strip-debug-gdb.Ian Lance Taylor1-1/+11
2007-11-15From Craig Silverstein: Add support for --demangle.Ian Lance Taylor1-0/+7
2007-11-14Warn about undefined references in shared libraries if we have seenIan Lance Taylor1-0/+10
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/+10
ODR violations, add test case.
2007-10-27From Craig Silverstein and Ian Lance Taylor: Process --script option.Ian Lance Taylor1-23/+66
2007-10-18Add support for -Bsymbolic.Ian Lance Taylor1-0/+8
2007-10-16From Cary Coutant: preliminary shared library support.Ian Lance Taylor1-0/+15
2007-10-14Run all error handling through an Errors object. Delete output fileIan Lance Taylor1-2/+18
on error.
2007-10-14Fix typo in comment.Ian Lance Taylor1-1/+1
2007-10-10Implement -s and -S options which strip symbols.Ian Lance Taylor1-1/+24
2007-10-04Full support for --sysroot.Ian Lance Taylor1-0/+9
2007-09-28Use parameters to track whether we are doing a static link. Fix upIan Lance Taylor1-0/+21
final_value_is_known for weak undefined symbols. Pointed out by Cary Coutant.
2007-09-26Put size and endianness in parameters.Ian Lance Taylor1-0/+30
2007-09-22Add licensing text to every source file.Ian Lance Taylor1-0/+20
2007-09-21Add global parameters.Ian Lance Taylor1-0/+70