Commit Graph

390 Commits

Author SHA1 Message Date
Ben Elliston 53fcba31ae Fix a ChangeLog formatting problem. 2008-03-26 02:00:39 +00:00
Ian Lance Taylor 819d6c3aea * options.cc: Include "../bfd/bfdver.h".
(options::help): Print bug reporting address.
2008-03-25 23:48:25 +00:00
Ian Lance Taylor f4b2c6f5d1 * version.cc (print_version): Adjust output for current value of
BFD_VERSION_STRING.
2008-03-25 23:30:48 +00:00
Ian Lance Taylor 4e740ec80c * NEWS: New file. 2008-03-25 21:55:29 +00:00
Ian Lance Taylor e96caa7910 * options.cc (options::help): Print list of supported targets.
* 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-25 21:39:01 +00:00
Ian Lance Taylor 874c5b289f * README: Rewrite, with some notes on unsupported features. 2008-03-25 21:14:45 +00:00
Cary Coutant 0a65a3a740 * i386.cc (Target_i386::Got_type): New enum declaration.
(Target_i386::Scan::local): Updated callers of Output_data_got
	member functions.
	(Target_i386::Scan::global): Likewise.
	(Target_i386::Relocate::relocate): Likewise.
	(Target_i386::Relocate::relocate_tls): Likewise.
	* object.h (Got_offset_list): New class.
	(Sized_relobj::local_has_got_offset): Added got_type parameter.
	(Sized_relobj::local_got_offset): Likewise.
	(Sized_relobj::set_local_got_offset): Likewise.
	(Sized_relobj::local_has_tls_got_offset): Removed.
	(Sized_relobj::local_tls_got_offset): Removed.
	(Sized_relobj::set_local_tls_got_offset): Removed.
	(Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
	* output.cc (Output_data_got::add_global): Added got_type parameter.
	(Output_data_got::add_global_with_rel): Likewise.
	(Output_data_got::add_global_with_rela): Likewise.
	(Output_data_got::add_global_pair_with_rel): New function.
	(Output_data_got::add_global_pair_with_rela): New function.
	(Output_data_got::add_local): Added got_type parameter.
	(Output_data_got::add_local_with_rel): Likewise.
	(Output_data_got::add_local_with_rela): Likewise.
	(Output_data_got::add_local_pair_with_rel): New function.
	(Output_data_got::add_local_pair_with_rela): New function.
	(Output_data_got::add_global_tls): Removed.
	(Output_data_got::add_global_tls_with_rel): Removed.
	(Output_data_got::add_global_tls_with_rela): Removed.
	(Output_data_got::add_local_tls): Removed.
	(Output_data_got::add_local_tls_with_rel): Removed.
	(Output_data_got::add_local_tls_with_rela): Removed.
	* output.h (Output_data_got::add_global): Added got_type parameter.
	(Output_data_got::add_global_with_rel): Likewise.
	(Output_data_got::add_global_with_rela): Likewise.
	(Output_data_got::add_global_pair_with_rel): New function.
	(Output_data_got::add_global_pair_with_rela): New function.
	(Output_data_got::add_local): Added got_type parameter.
	(Output_data_got::add_local_with_rel): Likewise.
	(Output_data_got::add_local_with_rela): Likewise.
	(Output_data_got::add_local_pair_with_rel): New function.
	(Output_data_got::add_local_pair_with_rela): New function.
	(Output_data_got::add_global_tls): Removed.
	(Output_data_got::add_global_tls_with_rel): Removed.
	(Output_data_got::add_global_tls_with_rela): Removed.
	(Output_data_got::add_local_tls): Removed.
	(Output_data_got::add_local_tls_with_rel): Removed.
	(Output_data_got::add_local_tls_with_rela): Removed.
	* resolve.cc (Symbol::override_base_with_special): Removed
	reference to has_got_offset_ field.
	* symtab.cc (Symbol::init_fields): Replaced initialization
	of got_offset_ with got_offsets_.  Removed initialization
	of has_got_offset_
	*symtab.h (Symbol::has_got_offset): Aded got_type parameter.
	(Symbol::got_offset): Likewise.
	(Symbol::set_got_offset): Likewise.
	(Symbol::has_tls_got_offset): Removed.
	(Symbol::tls_got_offset): Removed.
	(Symbol::set_tls_got_offset): Removed.
	(Symbol::got_offset_): Removed.
	(Symbol::tls_mod_got_offset_): Removed.
	(Symbol::tls_pair_got_offset_): Removed.
	(Symbol::got_offsets_): New field.
	(Symbol::has_got_offset): Removed.
	(Symbol::has_tls_mod_got_offset): Removed.
	(Symbol::has_tls_pair_got_offset): Removed.
	* x86_64.cc (Target_x86_64::Got_type): New enum declaration.
	(Target_x86_64::Scan::local): Updated callers of Output_data_got
	member functions.
	(Target_x86_64::Scan::global): Likewise.
	(Target_x86_64::Relocate::relocate): Likewise.
	(Target_x86_64::Relocate::relocate_tls): Likewise.
2008-03-25 18:37:16 +00:00
Ben Elliston bd52eafbd6 * yyscript.y: Fix spelling error in comment. 2008-03-25 07:50:21 +00:00
Ian Lance Taylor 8ed814a99c * options.h (class General_options): Define build_id option.
* layout.h (class Layout): Declare write_build_id, create_note,
	create_build_id.  Add build_id_note_ member.
	* layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
	"libiberty.h", "md5.h", "sha1.h".
	(Layout::Layout): Initialize eh_frame_data_,
	eh_frame_hdr_section_, and build_id_note_.
	(Layout::finalize): Call create_build_id.
	(Layout::create_note): New function, broken out of
	Layout::create_gold_note.
	(Layout::create_gold_note): Call create_note.
	(Layout::create_build_id): New function.
	(Layout::write_build_id): New function.
	(Close_task_runner::run): Call write_build_id.
2008-03-25 05:11:41 +00:00
Ian Lance Taylor 8b105e34ed * x86_64.cc: Correct license to GPLv3. 2008-03-24 21:42:22 +00:00
Ian Lance Taylor 086a18414a * options.cc: Include "demangle.h".
(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-24 03:48:29 +00:00
Ian Lance Taylor cbb93e6310 * gold.h: Include <cstddef> and <sys/types.h>
* options.h: Include <cstring>.
2008-03-22 18:51:35 +00:00
Ian Lance Taylor ec531623a8 Add ChangeLog file now that the sources are part of the GNU binutils. 2008-03-21 23:25:13 +00:00
Ian Lance Taylor f5921069ec Bump version for general release. 2008-03-21 17:48:18 +00:00
Ian Lance Taylor eb42429a93 From Craig Silverstein: implement -z defs. 2008-03-20 05:22:37 +00:00
Ian Lance Taylor 96a2b4e4bf Make sure the start and size of the TLS segment are aligned. 2008-03-19 21:41:38 +00:00
Craig Silverstein 5d96d68f64 Up the version number to 1.3, which was just pushed to devtools. 2008-03-17 17:56:52 +00:00
Ian Lance Taylor d1f003c610 Fix handling of RELA relative relocs against local symbols in merge
sections.
2008-03-16 23:51:19 +00:00
Ian Lance Taylor be3e620119 Don't get confused about whether a symbol is the default version if we
see a later reference to it.  Add tests for this case.
2008-03-14 05:57:19 +00:00
Ian Lance Taylor ebdbb4583d Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
Ian Lance Taylor 1d6531cfad Don't crash if we change the address of the .eh_frame section after we
find its size.
2008-03-13 20:58:11 +00:00
Ian Lance Taylor 2285a61069 From Craig Silverstein: Implement --debug=files to track file opens,
and implement --verbose as a synonym.
2008-03-13 01:46:17 +00:00
Ian Lance Taylor 1650c4ff50 Combine read-only .eh_frame sections with read-write .eh_frame
sections.
2008-03-12 04:38:42 +00:00
Craig Silverstein 5340de5bee Up version to 1.2, as the 1.2 binary was pushed to users today. 2008-03-11 20:06:31 +00:00
Ian Lance Taylor 4e2b16973e If we a section with no flags followed by a section with the same name
with flags, put them in the same output section.
2008-03-11 16:50:08 +00:00
Ian Lance Taylor fee2edb1e4 From Craig Silverstein: sort options into alphabetical order. 2008-03-07 18:50:04 +00:00
Ian Lance Taylor 9531704395 Increase maximum bucket size for dynamic hash tables. 2008-03-07 16:30:59 +00:00
Ian Lance Taylor a8627968fb From Craig Silverstein: implement --hash-bucket-empty-fraction for real. 2008-03-07 16:27:33 +00:00
Ian Lance Taylor c18476e7f1 Recognize --hash-bucket-empty-fraction. 2008-03-07 07:00:48 +00:00
Ian Lance Taylor 6be6f3bdcd Use absolute address for relocations when not doing a relocatable
link.
2008-03-06 06:10:44 +00:00
Ian Lance Taylor a4d4b13f68 Use N_ for option help strings, and call gettext when printing them. 2008-03-06 05:51:42 +00:00
Ian Lance Taylor 09ffbbe0d4 From Craig Silverstein: accept any string for input format, warn if
thread options when not supported.
2008-03-06 00:53:37 +00:00
Ian Lance Taylor 7dfac99ff1 Don't use the user-specified output format unless the user actually
specified one.
2008-03-06 00:17:43 +00:00
Ian Lance Taylor 13670ee669 Support --hash-style=gnu. 2008-03-06 00:15:04 +00:00
Ian Lance Taylor ee1fe73e11 From Craig Silverstein: rework option handling to make it easier to
add a new option.
2008-03-04 23:10:38 +00:00
Ian Lance Taylor 7cc619c3b1 From Craig Silverstein: rename some option functions in preparation
for reworking option handling.
2008-03-04 18:21:43 +00:00
Ian Lance Taylor 021777a2ec Remove partial implementation that was never completed. This was
replaced by the Stringpool<> class.
2008-03-03 23:47:14 +00:00
Ian Lance Taylor 7d1a9ebbf2 Remove gcc 3.2 compatibility hacks. 2008-02-29 19:19:17 +00:00
Ian Lance Taylor 8f2eb564dd Permit scripts to refer to the addresses of output sections which were
not created.
2008-02-29 00:04:06 +00:00
Ian Lance Taylor 878405a889 Don't warn about redefinitions from a --just-symbols object. 2008-02-28 22:39:29 +00:00
Ian Lance Taylor 0dfbdef4c4 Support -d/--define-common. 2008-02-28 20:35:39 +00:00
Ian Lance Taylor da769d5629 Read input scripts which look like input objects with proper
serialization.
2008-02-28 19:46:06 +00:00
Ian Lance Taylor 919ed24cbc Don't check assertions until symbols are finalized. Create an output
section if the script uses a data statement with no input sections.
Don't create a loadable segment for the headers if there is no room.
2008-02-28 04:45:47 +00:00
Ian Lance Taylor 15cf077ef4 Put input sections with no flags in output sections with the same name. 2008-02-28 00:51:07 +00:00
Ian Lance Taylor 8851eccaec From Craig Silverstein: Have Parameters point to General_options. 2008-02-28 00:18:24 +00:00
Ian Lance Taylor 7019cd2565 Implement -q/--emit-relocs. 2008-02-27 22:38:18 +00:00
Ian Lance Taylor 1890b46591 Fix handling of ENTRY in linker script. 2008-02-27 15:09:16 +00:00
Ian Lance Taylor a5dc070655 From Craig Silverstein: rework handling of Script_options. 2008-02-26 22:48:08 +00:00
Ian Lance Taylor cd72c29180 From Craig Silverstein: implement -z max-page-size and -z
common-page-size.
2008-02-26 22:10:32 +00:00
Ian Lance Taylor 45aa233bdc From Craig Silverstein: rename option functions for future option
handling rewrite.
2008-02-26 21:45:30 +00:00