2008-03-27 07:36:46 +08:00
|
|
|
2008-03-26 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
2008-03-27 14:11:57 +08:00
|
|
|
* symtab.cc (Symbol_table::add_from_relobj): Don't set the version
|
|
|
|
of an undefined symbol from a version script.
|
|
|
|
* testsuite/Makefile.am (ver_test_5.so): New target.
|
|
|
|
(ver_test_5.o): New target.
|
|
|
|
(check_SCRIPTS): Add ver_test_5.sh.
|
|
|
|
(check_DATA): Add ver_test_5.syms.
|
|
|
|
(ver_test_5.syms): New target.
|
|
|
|
* testsuite/ver_test_5.cc: New file.
|
|
|
|
* testsuite/ver_test_5.script: New file.
|
|
|
|
* testsuite/ver_test_5.sh: New file.
|
|
|
|
* Makefile.in, testsuite/Makefile.in: Rebuild.
|
|
|
|
|
2008-03-27 07:36:46 +08:00
|
|
|
PR gold/5986
|
|
|
|
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-26 05:14:45 +08:00
|
|
|
2008-03-25 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
2008-03-26 07:48:25 +08:00
|
|
|
* options.cc: Include "../bfd/bfdver.h".
|
|
|
|
(options::help): Print bug reporting address.
|
|
|
|
|
2008-03-26 07:30:48 +08:00
|
|
|
* version.cc (print_version): Adjust output for current value of
|
|
|
|
BFD_VERSION_STRING.
|
|
|
|
|
|
|
|
* NEWS: New file.
|
|
|
|
|
2008-03-26 05:39:01 +08:00
|
|
|
* 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-26 05:14:45 +08:00
|
|
|
* README: Rewrite, with some notes on unsupported features.
|
|
|
|
|
2008-03-26 02:37:16 +08:00
|
|
|
2008-03-24 Cary Coutant <ccoutant@google.com>
|
|
|
|
|
|
|
|
* 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_
|
2008-03-26 10:00:39 +08:00
|
|
|
* symtab.h (Symbol::has_got_offset): Aded got_type parameter.
|
2008-03-26 02:37:16 +08:00
|
|
|
(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 15:50:21 +08:00
|
|
|
2008-03-25 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
* yyscript.y: Fix spelling error in comment.
|
|
|
|
|
2008-03-25 05:42:22 +08:00
|
|
|
2008-03-24 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
* 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 13:11:41 +08:00
|
|
|
* 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:42:22 +08:00
|
|
|
* x86_64.cc: Correct license to GPLv3.
|
|
|
|
|
2008-03-24 11:48:29 +08:00
|
|
|
2008-03-23 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* 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-23 02:51:35 +08:00
|
|
|
2008-03-22 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* gold.h: Include <cstddef> and <sys/types.h>
|
|
|
|
* options.h: Include <cstring>.
|
|
|
|
|
2008-03-22 07:25:13 +08:00
|
|
|
2008-03-21 Ian Lance Taylor <iant@google.com>
|
|
|
|
|
|
|
|
* Added source code to GNU binutils.
|
|
|
|
|