2016-03-28 01:09:56 +02:00
|
|
|
|
2016-03-27 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/16111
|
|
|
|
|
* i386.cc (Target_i386): Add check for fully-resolved symbol for
|
|
|
|
|
R_386_GOTOFF.
|
|
|
|
|
|
2016-03-22 10:41:16 +01:00
|
|
|
|
2016-03-22 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2016-03-22 03:07:55 +01:00
|
|
|
|
2016-03-21 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19842
|
|
|
|
|
* errors.cc (Errors::undefined_symbol): Add info message when
|
|
|
|
|
symbol should have been provided by a plugin.
|
|
|
|
|
* target-reloc.h (issue_undefined_symbol_error): Check for
|
|
|
|
|
placeholder symbols defined in discarded sections.
|
|
|
|
|
* testsuite/Makefile.am (plugin_test_9b): New test case.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/plugin_test_9b_elf.cc: New test source file.
|
|
|
|
|
* testsuite/plugin_test_9b_ir.cc: New test source file.
|
|
|
|
|
|
Fix problem where gold cannot build .eh_frame_hdr from ld -r output.
When running ld -r on objects that have comdat groups, when gold
deduplicates a function in a comdat group, it removes the relocations
from the EH information that referred to the dropped copy of the function.
When running a final link using the result of the -r link, the missing
relocation cause it to fail to recognize the FDE for the dropped
function.
This patch improves gold's FDE scanning to take into account the
possibility that an FDE corresponds to a dropped function, and drops
that FDE as well.
Gnu ld, on the other hand, leaves the relocations in the ld -r output,
but makes them R_NONE with an r_sym field of 0. This was sufficient to
let both linkers recognize the FDE properly.
With this fix, if you do an ld -r with gold, then do the final link with
Gnu ld, the .eh_frame_hdr section will not be generated. To make it work
with Gnu ld, we would have to leave the R_NONE relocations in, but I
think it's better to drop the relocations entirely. I'd hope that if
you're doing a -r link with gold, you'll also do the final link with
gold.
gold/
PR gold/19002
* ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
* testsuite/Makefile.am (eh_test_2): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/eh_test_2.sh: New test script.
* testsuite/eh_test_a.cc (bar): Make it comdat.
* testsuite/eh_test_b.cc (bar): Add a duplicate copy.
2016-03-21 03:15:56 +01:00
|
|
|
|
2016-03-20 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19002
|
|
|
|
|
* ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
|
|
|
|
|
* testsuite/Makefile.am (eh_test_2): New test.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/eh_test_2.sh: New test script.
|
|
|
|
|
* testsuite/eh_test_a.cc (bar): Make it comdat.
|
|
|
|
|
* testsuite/eh_test_b.cc (bar): Add a duplicate copy.
|
|
|
|
|
|
2016-03-18 22:54:35 +01:00
|
|
|
|
2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* mips.cc (Mips_relobj::is_n64_): Remove.
|
|
|
|
|
(Target_mips::ei_class_): Likewise.
|
|
|
|
|
(Mips_relobj::is_newabi): Call methods.
|
|
|
|
|
(Mips_relobj::is_n64): Change checking for N64 ABI.
|
|
|
|
|
(Target_mips::is_output_n64): Likewise.
|
|
|
|
|
(Target_mips::merge_processor_specific_flags): Remove ei_class
|
|
|
|
|
argument, and remove comparing ei_class.
|
|
|
|
|
(Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field
|
|
|
|
|
of the ELF header.
|
|
|
|
|
(Target_mips::do_finalize_sections): Don't pass ei_class argument
|
|
|
|
|
to merge_processor_specific_flags.
|
|
|
|
|
(Target_mips::elf_mips_abi_name): Remove ei_class argument, and
|
|
|
|
|
change checking for N64 ABI.
|
|
|
|
|
|
2016-03-17 23:07:49 +01:00
|
|
|
|
2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* mips.cc (enum Special_relocation_symbol): New enum type.
|
|
|
|
|
(is_readonly_section): New function.
|
|
|
|
|
(eh_reloc): Likewise.
|
|
|
|
|
(Mips_got_entry::is_section_symbol_): New member.
|
|
|
|
|
(Mips_got_entry::is_section_symbol): New method.
|
|
|
|
|
(Mips_got_info::record_local_got_symbol): Add is_section_symbol
|
|
|
|
|
argument.
|
|
|
|
|
(Mips_relobj::mips_elf_options_section_name): New method.
|
|
|
|
|
(Mips_output_data_got::record_local_got_symbol): Add
|
|
|
|
|
is_section_symbol argument, and pass it to
|
|
|
|
|
Mips_got_info::record_local_got_symbol.
|
|
|
|
|
(Mips_output_data_got::got_offset): Add addend argument, and pass
|
|
|
|
|
it to Relobj::local_got_offset.
|
|
|
|
|
(struct Mips_output_reloc_writer): New type.
|
|
|
|
|
(class Mips_output_data_reloc): New class.
|
|
|
|
|
(Mips_output_data_plt::Reloc_section): Change type to
|
|
|
|
|
Mips_output_data_reloc.
|
|
|
|
|
(Target_mips::Reloc_section): Likewise.
|
|
|
|
|
(Mips_reloc_types::get_r_addend): Remove unsigned from return type.
|
|
|
|
|
(Mips_classify_reloc::get_r_type2): New method.
|
|
|
|
|
(Mips_classify_reloc::get_r_type3): Likewise.
|
|
|
|
|
(Mips_classify_reloc::get_r_ssym): Likewise.
|
|
|
|
|
(Target_mips::Reloca_section): Remove.
|
|
|
|
|
(Relocate::should_apply_static_reloc): Rename from
|
|
|
|
|
should_apply_r_mips_32_reloc.
|
|
|
|
|
(Target_mips::copy_reloc): Replace Reltype parameter with r_type
|
|
|
|
|
and r_offset.
|
|
|
|
|
(Mips_relocate_functions::Valtype): New type.
|
|
|
|
|
(Mips_relocate_functions::Valtype64): New type.
|
|
|
|
|
(Mips_relocate_functions::check_overflow): New method.
|
|
|
|
|
(Mips_relocate_functions::mips_reloc_unshuffle): Move to public
|
|
|
|
|
interface.
|
|
|
|
|
(Mips_relocate_functions::mips_reloc_shuffle): Likewise.
|
|
|
|
|
(Mips_relocate_functions::rel16): Add support for resolving
|
|
|
|
|
relocations for Mips64.
|
|
|
|
|
(Mips_relocate_functions::rel32): Likewise.
|
|
|
|
|
(Mips_relocate_functions::reljalr): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relpc32): Likewise.
|
|
|
|
|
(Mips_relocate_functions::rel26): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relpc16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relmicromips_pc7_s1): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relmicromips_pc10_s1): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relmicromips_pc16_s1): Likewise.
|
|
|
|
|
(Mips_relocate_functions::do_relhi16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::do_relgot16_local): Likewise.
|
|
|
|
|
(Mips_relocate_functions::rello16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgot): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgotpage): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgotofst): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgot_hi16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgot_lo16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgprel): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relgprel32): Likewise.
|
|
|
|
|
(Mips_relocate_functions::tlsrelhi16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::tlsrello16): Likewise.
|
|
|
|
|
(Mips_relocate_functions::tlsrel32): Likewise.
|
|
|
|
|
(Mips_relocate_functions::relsub): Likewise.
|
|
|
|
|
(Mips_relocate_functions::releh): New method.
|
|
|
|
|
(Mips_relocate_functions::rel64): Likewise.
|
|
|
|
|
(Mips_got_info::record_local_got_symbol): Add is_section_symbol and
|
|
|
|
|
pass it to Mips_got_entry.
|
|
|
|
|
(Mips_got_info::add_local_entries): Pass addend argument
|
|
|
|
|
to code functions, and for STT_SECTION symbols call
|
|
|
|
|
add_symbolless_local_addend.
|
|
|
|
|
(Mips_got_info::add_tls_entries): Pass addend argument to code
|
|
|
|
|
functions.
|
|
|
|
|
(Mips_relobj::do_read_symbols): Read gp value that was used to
|
|
|
|
|
create object.
|
|
|
|
|
(Mips_output_data_plt::plt_entry): Remove opcode from l[wd]
|
|
|
|
|
instruction. Opcode for instruction will be selected later.
|
|
|
|
|
(Target_mips::gc_process_relocs): Add case for SHT_RELA.
|
|
|
|
|
(Target_mips::scan_relocatable_relocs): Likewise.
|
|
|
|
|
(Target_mips::emit_relocs_scan): Likewise.
|
|
|
|
|
(Target_mips::relocate_relocs): Likewise.
|
|
|
|
|
(Target_mips::do_finalize_sections): Skip objects for merging
|
|
|
|
|
processor specific flags in which all input sections will be
|
|
|
|
|
discarded.
|
|
|
|
|
(mips_get_size_for_reloc): Add case for R_MIPS_EH.
|
|
|
|
|
(Target_mips::Scan::get_reference_flags): Likewise.
|
|
|
|
|
(Target_mips::relocate_special_relocatable): Call rel26 method with
|
|
|
|
|
calculate_only and calculated_value arguments.
|
|
|
|
|
(Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a
|
|
|
|
|
dynamic relocation against a readonly sections, and pass
|
|
|
|
|
is_section_symbol to Mips_got_info::record_local_got_symbol.
|
|
|
|
|
(Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a
|
|
|
|
|
dynamic relocation against a readonly sections, and pass r_type
|
|
|
|
|
and r_offset to Target_mips::copy_reloc.
|
|
|
|
|
(Target_mips::Relocate::relocate): Add support for resolving
|
|
|
|
|
relocations for Mips64.
|
|
|
|
|
(Target_mips::mips_info): Add case for Mips64 default dynamic
|
|
|
|
|
linker name.
|
|
|
|
|
(Target_selector_mips): Correct emulation names.
|
|
|
|
|
|
2016-03-17 22:27:48 +01:00
|
|
|
|
2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* mips.cc (class Mips_output_data_la25_stub): Add
|
|
|
|
|
do_print_to_mapfile function.
|
|
|
|
|
|
2016-03-17 21:28:34 +01:00
|
|
|
|
2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
|
|
|
|
|
elf_r_info.
|
|
|
|
|
|
2016-03-09 17:27:03 +01:00
|
|
|
|
2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/plugin_layout_with_alignment.cc: Renamed to ..
|
|
|
|
|
* testsuite/plugin_layout_with_alignment.c: This.
|
|
|
|
|
* testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
|
|
|
|
|
(plugin_layout_with_alignment): Likewise.
|
|
|
|
|
* testsuite/Makefile.in: Regenerated.
|
|
|
|
|
|
2016-03-09 05:30:26 +01:00
|
|
|
|
2016-03-08 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 19751
|
|
|
|
|
* testsuite/Makefile.am (retain_symbols_file_test): Remove check
|
|
|
|
|
for constructor.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/dynamic_list.sh: Likewise.
|
|
|
|
|
* testsuite/retain_symbols_file_test.sh: Likewise.
|
|
|
|
|
|
2016-03-03 23:13:10 +01:00
|
|
|
|
2016-03-08 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR 19751
|
|
|
|
|
* arm.cc (Reloc_stub::Key::name): Add unused attribute.
|
|
|
|
|
* dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
|
|
|
|
|
|
2016-03-08 21:24:39 +01:00
|
|
|
|
2016-03-08 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
|
|
|
|
|
|
|
|
|
* output.cc (Output_reloc_writer): New type.
|
|
|
|
|
(Output_data_reloc_base::do_write): Move implementation to template
|
|
|
|
|
in output.h and replace with invocation of template.
|
|
|
|
|
* output.h (Output_file): Move to top of file.
|
|
|
|
|
(Output_reloc::get_symbol_index): Move to public interface.
|
|
|
|
|
(Output_reloc::get_address): Likewise.
|
|
|
|
|
(Output_data_reloc_base::do_write_generic): New function template.
|
|
|
|
|
|
2016-03-04 17:10:57 +01:00
|
|
|
|
2016-03-04 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19019
|
|
|
|
|
PR gold/19763
|
|
|
|
|
* symtab.cc: Instantiate Sized_symbol::init_constant and
|
|
|
|
|
Sized_symbol::init_undefined.
|
|
|
|
|
|
2016-02-05 01:55:39 +01:00
|
|
|
|
2016-03-03 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19019
|
|
|
|
|
* layout.h (Layout::add_target_specific_dynamic_tag): New function.
|
|
|
|
|
* layout.cc (Layout::add_target_specific_dynamic_tag): New function.
|
|
|
|
|
* mips.cc (Target_mips::make_symbol): Adjust function signature.
|
|
|
|
|
* sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_.
|
|
|
|
|
(Target_sparc::do_is_defined_by_abi): Remove test for
|
|
|
|
|
STT_SPARC_REGISTER.
|
|
|
|
|
(Target_sparc::Register_symbol): New struct type.
|
|
|
|
|
(Target_sparc::register_syms_): New data member.
|
|
|
|
|
(Target_sparc<64, true>::sparc_info): Set has_make_symbol to true.
|
|
|
|
|
(Target_sparc::make_symbol): New function.
|
|
|
|
|
(Target_sparc::do_finalize_sections): Add register symbols and new
|
|
|
|
|
dynamic table entries.
|
|
|
|
|
* symtab.h (Sized_symbol::init_undefined): Add value parameter.
|
|
|
|
|
(Symbol_table::add_target_global_symbol): New function.
|
|
|
|
|
(Symbol_table::target_symbols_): New data member.
|
|
|
|
|
* symtab.cc (Sized_symbol::init_undefined): Add value parameter.
|
|
|
|
|
(Symbol_table::Symbol_table): Initialize target_symbols_.
|
|
|
|
|
(Symbol_table::add_from_object): Pass additional parameters to
|
|
|
|
|
Target::make_symbol.
|
|
|
|
|
(Symbol_table::define_special_symbol): Likewise.
|
|
|
|
|
(Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for
|
|
|
|
|
undefined symbol value.
|
|
|
|
|
(Symbol_table::set_dynsym_indexes): Process target-specific symbols.
|
|
|
|
|
(Symbol_table::sized_finalize): Likewise.
|
|
|
|
|
(Symbol_table::sized_write_globals): Likewise.
|
|
|
|
|
* target.h (Sized_target::make_symbol): Add name, st_type, object,
|
|
|
|
|
st_shndx, and value parameters.
|
|
|
|
|
|
2016-03-04 23:17:39 +01:00
|
|
|
|
2016-03-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
|
2016-03-03 20:42:21 +01:00
|
|
|
|
|
|
|
|
|
* plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and
|
|
|
|
|
LDPK_WEAKUNDEF symbols.
|
|
|
|
|
|
2016-03-04 17:28:12 +01:00
|
|
|
|
2016-03-03 Than McIntosh <thanm@google.com>
|
|
|
|
|
|
|
|
|
|
* plugin.cc (Plugin::load): Include hooks for get_input_section_size
|
|
|
|
|
and get_input_section_alignment in transfer vector.
|
|
|
|
|
(get_input_section_alignment): New function.
|
|
|
|
|
(get_input_section_size): New function.
|
|
|
|
|
* testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test.
|
|
|
|
|
* testsuite/Makefile.in: [Regenerate.]
|
|
|
|
|
* testsuite/plugin_section_alignment.cc: New test file.
|
|
|
|
|
* testsuite/plugin_layout_with_alignment.cc: New test file.
|
|
|
|
|
* testsuite/plugin_layout_with_alignment.sh: New test file.
|
|
|
|
|
|
2016-03-04 23:17:39 +01:00
|
|
|
|
2016-03-03 Evgenii Stepanov <eugenis@google.com>
|
2016-03-03 20:36:36 +01:00
|
|
|
|
|
|
|
|
|
* plugin.h (Pluginobj::get_symbol_resolution_info): Add version
|
|
|
|
|
parameter.
|
|
|
|
|
* plugin.cc (get_symbols_v3): New function.
|
|
|
|
|
(Plugin::load): Add LDPT_GET_SYMBOLS_V3.
|
|
|
|
|
(Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
|
|
|
|
|
new version.
|
|
|
|
|
|
2016-02-26 16:50:15 +01:00
|
|
|
|
2016-02-26 Egor Kochetov <egor.kochetov@intel.com>
|
|
|
|
|
Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19735
|
|
|
|
|
* ehframe.h (Cie::fde_encoding): New method.
|
|
|
|
|
* ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length
|
|
|
|
|
address ranges.
|
|
|
|
|
|
2016-02-16 14:55:11 +01:00
|
|
|
|
2016-02-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
|
|
|
|
|
-mrelax-relocations=yes to $(TEST_AS).
|
|
|
|
|
(x86_64_mov_to_lea6.o): Likewise.
|
|
|
|
|
(x86_64_overflow_pc32.o): Remove duplicated target.
|
|
|
|
|
* testsuite/Makefile.in: Regenerated.
|
|
|
|
|
|
2015-12-13 02:53:09 +01:00
|
|
|
|
2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
|
|
|
|
|
|
|
|
|
|
* s390.cc (Target_s390::match_view_u): New helper method.
|
|
|
|
|
(Target_s390::do_is_call_to_non_split): New method.
|
|
|
|
|
(Target_s390::ss_code_st_r14): New const.
|
|
|
|
|
(Target_s390::ss_code_l_r14): New const.
|
|
|
|
|
(Target_s390::ss_code_bras_8): New const.
|
|
|
|
|
(Target_s390::ss_code_l_basr): New const.
|
|
|
|
|
(Target_s390::ss_code_a_basr): New const.
|
|
|
|
|
(Target_s390::ss_code_ear): New const.
|
|
|
|
|
(Target_s390::ss_code_c): New const.
|
|
|
|
|
(Target_s390::ss_code_larl): New const.
|
|
|
|
|
(Target_s390::ss_code_brasl): New const.
|
|
|
|
|
(Target_s390::ss_code_jg): New const.
|
|
|
|
|
(Target_s390::ss_code_jgl): New const.
|
|
|
|
|
(Target_s390::ss_match_mcount): New helper method.
|
|
|
|
|
(Target_s390::ss_match_l): New helper method.
|
|
|
|
|
(Target_s390::ss_match_ahi): New helper method.
|
|
|
|
|
(Target_s390::ss_match_alfi): New helper method.
|
|
|
|
|
(Target_s390::ss_match_cr): New helper method.
|
|
|
|
|
(Target_s390::do_calls_non_split): New method.
|
|
|
|
|
* testsuite/Makefile.am: Added new tests.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/split_s390.sh: New test.
|
|
|
|
|
* testsuite/split_s390_1_a1.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_a2.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_n1.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_n2.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_z1.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_z2.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_z3.s: New test.
|
|
|
|
|
* testsuite/split_s390_1_z4.s: New test.
|
|
|
|
|
* testsuite/split_s390_2_ns.s: New test.
|
|
|
|
|
* testsuite/split_s390_2_s.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_a1.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_a2.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_n1.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_n2.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_z1.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_z2.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_z3.s: New test.
|
|
|
|
|
* testsuite/split_s390x_1_z4.s: New test.
|
|
|
|
|
* testsuite/split_s390x_2_ns.s: New test.
|
|
|
|
|
* testsuite/split_s390x_2_s.s: New test.
|
|
|
|
|
|
2016-02-11 18:47:49 +01:00
|
|
|
|
2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com>
|
|
|
|
|
|
|
|
|
|
* aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove
|
|
|
|
|
info message for every erratum 843419 found and fixed.
|
|
|
|
|
|
2016-02-07 19:17:01 +01:00
|
|
|
|
2016-02-07 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/18695
|
|
|
|
|
* x86_64.cc (Target_x86_64::Relocate::relocate): Add additional
|
|
|
|
|
information to relocation overflow errors.
|
|
|
|
|
|
2016-02-07 07:42:16 +01:00
|
|
|
|
2016-02-06 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
2016-02-07 19:17:01 +01:00
|
|
|
|
PR gold/18695
|
2016-02-07 07:42:16 +01:00
|
|
|
|
* x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32
|
|
|
|
|
overflow checking when symbol value + addend < 0.
|
|
|
|
|
|
2016-02-07 03:18:51 +01:00
|
|
|
|
2016-02-06 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19577
|
|
|
|
|
* reloc.h (Limits): New class.
|
|
|
|
|
(Bits::has_overflow32): Use min/max values from Limits.
|
|
|
|
|
(Bits::has_unsigned_overflow32): Likewise.
|
|
|
|
|
(Bits::has_signed_unsigned_overflow32): Likewise.
|
|
|
|
|
(Bits::has_overflow): Likewise.
|
|
|
|
|
(Bits::has_unsigned_overflow): Likewise.
|
|
|
|
|
(Bits::has_signed_unsigned_overflow64): Likewise.
|
|
|
|
|
|
2016-02-06 23:47:05 +01:00
|
|
|
|
2016-02-06 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19567
|
|
|
|
|
* reloc.h (Relocate_functions::Overflow_check): Add comments.
|
|
|
|
|
* x86_64.cc (X86_64_relocate_functions): New class.
|
|
|
|
|
(Target_x86_64::Relocate::relocate): Use the new class.
|
|
|
|
|
* testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option.
|
|
|
|
|
(x32_overflow_pc32): New test case.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/x32_overflow_pc32.sh: New script.
|
|
|
|
|
* testsuite/x86_64_overflow_pc32.s: Remove .space directive.
|
|
|
|
|
|
2016-02-06 19:28:36 +01:00
|
|
|
|
2016-02-06 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19577
|
|
|
|
|
* reloc.h (Bits::has_unsigned_overflow32): Fix static_cast.
|
|
|
|
|
(Bits::has_unsigned_overflow): Remove unnecessary static_cast.
|
|
|
|
|
|
2016-02-06 18:53:58 +01:00
|
|
|
|
2016-02-06 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
2016-02-06 18:55:40 +01:00
|
|
|
|
PR gold/19577
|
2016-02-06 18:53:58 +01:00
|
|
|
|
* reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed
|
|
|
|
|
comparison.
|
|
|
|
|
(Bits::has_unsigned_overflow): Likewise.
|
|
|
|
|
|
2016-02-06 01:52:00 +01:00
|
|
|
|
2016-02-06 Marcin Kościelnicki <koriakin@0x04.net>
|
|
|
|
|
|
|
|
|
|
* i386.cc (Target_i386::is_call_to_non_split): Add view and view_size
|
|
|
|
|
parameters.
|
|
|
|
|
* reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view
|
|
|
|
|
and view_size to is_call_to_non_split.
|
|
|
|
|
* target.cc (Target::is_call_to_non_split): Add view and view_size
|
|
|
|
|
parameters.
|
|
|
|
|
* target.h (class Target): Likewise.
|
|
|
|
|
|
2016-02-06 00:07:45 +01:00
|
|
|
|
2016-02-05 Sriraman Tallam <tmsriram@google.com>
|
|
|
|
|
|
|
|
|
|
* icf.cc (get_rel_addend): New function.
|
|
|
|
|
(get_section_contents): Move merge section addend computation to a
|
|
|
|
|
new function. Ignore negative values for SHT_REL and SHT_RELA addends.
|
|
|
|
|
Fix bug to not read past the length of the section.
|
|
|
|
|
|
2016-02-05 18:19:47 +01:00
|
|
|
|
2016-02-05 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
Andrew Senkevich <andrew.senkevich@intel.com>
|
|
|
|
|
|
|
|
|
|
PR gold/18695
|
|
|
|
|
* x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow
|
|
|
|
|
checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and
|
|
|
|
|
R_X86_64_PLT32.
|
|
|
|
|
* testsuite/Makefile.am (x86_64_overflow_pc32): New test.
|
|
|
|
|
* testsuite/x86_64_overflow_pc32.sh: New test script.
|
|
|
|
|
* testsuite/x86_64_overflow_pc32.s: New source file.
|
|
|
|
|
|
|
|
|
|
2016-02-05 Cary Coutant <ccoutant@gmail.com>
|
2016-02-05 17:27:13 +01:00
|
|
|
|
|
|
|
|
|
PR gold/18695
|
|
|
|
|
* reloc.h (Relocate_functions::Address): New typedef.
|
|
|
|
|
(Relocate_functions::Addendtype): New typedef.
|
|
|
|
|
(Relocate_functions::Overflow_check): New enum type.
|
|
|
|
|
(Relocate_functions::Reloc_status): New enum type.
|
|
|
|
|
(Relocate_functions::check_overflow): New function template.
|
|
|
|
|
(Relocate_functions::rel): Add check parameter; check for overflow.
|
|
|
|
|
(Relocate_functions::rel_unaligned): Likewise.
|
|
|
|
|
(Relocate_functions::rela): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel_unaligned): Likewise.
|
|
|
|
|
(Relocate_functions::pcrela): Likewise.
|
|
|
|
|
(Relocate_functions::rel8): Adjust parameter types.
|
|
|
|
|
(Relocate_functions::rela8): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel8): Likewise.
|
|
|
|
|
(Relocate_functions::pcrela8): Likewise.
|
|
|
|
|
(Relocate_functions::rel16): Likewise.
|
|
|
|
|
(Relocate_functions::rela168): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel16): Likewise.
|
|
|
|
|
(Relocate_functions::pcrela16): Likewise.
|
|
|
|
|
(Relocate_functions::rel32): Likewise.
|
|
|
|
|
(Relocate_functions::rel32_unaligned): Likewise.
|
|
|
|
|
(Relocate_functions::rela32): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel32): Likewise.
|
|
|
|
|
(Relocate_functions::pcrel32_unaligned): Likewise.
|
|
|
|
|
(Relocate_functions::pcrela32): Likewise.
|
|
|
|
|
(Relocate_functions::rel8_check): New function.
|
|
|
|
|
(Relocate_functions::rela8_check): New function.
|
|
|
|
|
(Relocate_functions::pcrel8_check): New function.
|
|
|
|
|
(Relocate_functions::pcrela8_check): New function.
|
|
|
|
|
(Relocate_functions::rel16_check): New function.
|
|
|
|
|
(Relocate_functions::rela168_check): New function.
|
|
|
|
|
(Relocate_functions::pcrel16_check): New function.
|
|
|
|
|
(Relocate_functions::pcrela16_check): New function.
|
|
|
|
|
(Relocate_functions::rel32_check): New function.
|
|
|
|
|
(Relocate_functions::rel32_unaligned_check): New function.
|
|
|
|
|
(Relocate_functions::rela32_check): New function.
|
|
|
|
|
(Relocate_functions::pcrel32_check): New function.
|
|
|
|
|
(Relocate_functions::pcrel32_unaligned_check): New function.
|
|
|
|
|
(Relocate_functions::pcrela32_check): New function.
|
|
|
|
|
(Bits::has_unsigned_overflow32): New function.
|
|
|
|
|
(Bits::has_unsigned_overflow): New function.
|
|
|
|
|
* testsuite/Makefile.am (overflow_unittest): New test.
|
|
|
|
|
* testsuite/Makefile.in: Regenerate.
|
|
|
|
|
* testsuite/overflow_unittest.cc: New source file.
|
|
|
|
|
|
2016-02-03 14:55:56 +01:00
|
|
|
|
2016-02-04 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* powerpc.cc (relocate): Adjust last patch for big-endian.
|
|
|
|
|
|
2016-02-02 13:46:14 +01:00
|
|
|
|
2016-02-02 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* powerpc.cc (relocate): Further restrict ELFv2 entry optimization.
|
|
|
|
|
|
2016-01-15 18:31:23 +01:00
|
|
|
|
2016-01-15 Han Shen <shenhan@google.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19472 - need pc-relative stubs.
|
|
|
|
|
|
|
|
|
|
* aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative
|
|
|
|
|
stub type for DSOs and pie executables.
|
|
|
|
|
|
2016-01-12 21:21:53 +01:00
|
|
|
|
2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
|
|
|
|
|
'typename'.
|
|
|
|
|
|
2016-01-12 20:39:50 +01:00
|
|
|
|
2016-01-12 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
* arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
|
|
|
|
|
* i386.cc (Target_i386::Classify_reloc::get_r_addend): New method.
|
|
|
|
|
* mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both
|
|
|
|
|
specializations) New method.
|
|
|
|
|
|
2016-01-12 08:57:44 +01:00
|
|
|
|
2016-01-11 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
PR gold/19353
|
|
|
|
|
* aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
|
|
|
|
|
we have a TLS segment for GD-to-IE optimization.
|
|
|
|
|
* i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
|
|
|
|
|
Adjust all calls.
|
|
|
|
|
(Target_i386::tls_desc_gd_to_ie): Likewise.
|
|
|
|
|
(Target_i386::relocate_tls): Don't insist that we have a TLS segment
|
|
|
|
|
for TLSDESC GD-to-IE optimizations.
|
|
|
|
|
* x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
|
|
|
|
|
Adjust all calls.
|
|
|
|
|
(Target_x86_64::tls_desc_gd_to_ie): Likewise.
|
|
|
|
|
(Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
|
|
|
|
|
for TLSDESC GD-to-IE optimizations.
|
|
|
|
|
|
Refactor gold to enable support for MIPS-64 relocation format.
For MIPS-64, the r_info field in the relocation format is
replaced by several individual fields, including r_sym and
r_type. To enable support for this format, I've refactored
target-independent code to remove almost all uses of the r_info
field. (I've left alone a couple of routines used only for
incremental linking, which I can update if/when the MIPS target
adds support for incremental linking.)
For routines that are already templated on a Classify_reloc class
(namely, gc_process_relocs, relocate_section, and
relocate_relocs), I've extended the Classify_reloc interface to
include sh_type (which no longer needs to be a separate template
parameter) as well as get_r_sym() and get_r_type() methods for
extracting the r_sym and r_type fields. For
scan_relocatable_relocs, I've extended the
Default_scan_relocatable_relocs class by converting it to a class
template with Classify_reloc as a template parameter. For the
remaining routines that need to access r_sym, I've added a
virtual Target::get_r_sym() method with an override for the MIPS
target.
In elfcpp, I've added Mips64_rel, etc., accessor classes and
corresponding internal data structures. The MIPS target uses
these new classes within its own Mips_classify_reloc class.
The Mips64_ accessor classes also expose the r_ssym, r_type2,
and r_type3 fields from the relocation.
These changes should be functionally the same for all but the
MIPS target.
elfcpp/
* elfcpp.h (Mips64_rel, Mips64_rel_write): New classes.
(Mips64_rela, Mips64_rela_write): New classes.
* elfcpp_internal.h (Mips64_rel_data, Mips64_rela_data): New structs.
gold/
* gc.h (get_embedded_addend_size): Remove sh_type parameter.
(gc_process_relocs): Remove sh_type template parameter.
Use Classify_reloc to access r_sym, r_type, and r_addend fields.
* object.h (Sized_relobj_file::split_stack_adjust): Add target
parameter.
(Sized_relobj_file::split_stack_adjust_reltype): Likewise.
* reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
specializations) Remove.
* reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
(Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
(Sized_relobj_file::emit_relocs_scan_reltype): Remove.
(Sized_relobj_file::split_stack_adjust): Add target parameter.
Adjust all callers.
(Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
Target::get_r_sym() to get r_sym field from relocations.
(Track_relocs::next_symndx): Call Target::get_r_sym().
* target-reloc.h (scan_relocs): Remove sh_type template parameter;
add Classify_reloc template parameter. Use for accessing r_sym and
r_type.
(relocate_section): Likewise.
(Default_classify_reloc): New class (renamed and moved from reloc.cc).
(Default_scan_relocatable_relocs): Remove sh_type template parameter.
(Default_scan_relocatable_relocs::Reltype): New typedef.
(Default_scan_relocatable_relocs::reloc_size): New const.
(Default_scan_relocatable_relocs::sh_type): New const.
(Default_scan_relocatable_relocs::get_r_sym): New method.
(Default_scan_relocatable_relocs::get_r_type): New method.
(Default_emit_relocs_strategy): New class.
(scan_relocatable_relocs): Replace sh_type template parameter with
Scan_relocatable_relocs class. Use it to access r_sym and r_type
fields.
(relocate_relocs): Replace sh_type template parameter with
Classify_reloc class. Use it to access r_sym and r_type fields.
* target.h (Target::is_call_to_non_split): Replace r_type parameter
with pointer to relocation. Adjust all callers.
(Target::do_is_call_to_non_split): Likewise.
(Target::emit_relocs_scan): New virtual method.
(Sized_target::get_r_sym): New virtual method.
* target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
with pointer to relocation.
* aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
(Target_aarch64::Relocatable_size_for_reloc): Remove.
(Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
(Target_aarch64::scan_relocs): Likewise.
(Target_aarch64::relocate_section): Likewise.
(Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
Remove.
(Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
(Target_aarch64::relocate_relocs): Use Default_classify_reloc.
* arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
template parameter.
(Target_arm::emit_relocs_scan): New method.
(Target_arm::Relocatable_size_for_reloc): Replace with...
(Target_arm::Classify_reloc): ...this.
(Target_arm::gc_process_relocs): Use Classify_reloc.
(Target_arm::scan_relocs): Likewise.
(Target_arm::relocate_section): Likewise.
(Target_arm::scan_relocatable_relocs): Likewise.
(Target_arm::relocate_relocs): Likewise.
* i386.cc (Target_i386::emit_relocs_scan): New method.
(Target_i386::Relocatable_size_for_reloc): Replace with...
(Target_i386::Classify_reloc): ...this.
(Target_i386::gc_process_relocs): Use Classify_reloc.
(Target_i386::scan_relocs): Likewise.
(Target_i386::relocate_section): Likewise.
(Target_i386::scan_relocatable_relocs): Likewise.
(Target_i386::relocate_relocs): Likewise.
* mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
parameter.
(Mips_reloc_types): New class template.
(Mips_classify_reloc): New class template.
(Target_mips::Reltype): New typedef.
(Target_mips::Relatype): New typedef.
(Target_mips::emit_relocs_scan): New method.
(Target_mips::get_r_sym): New method.
(Target_mips::Relocatable_size_for_reloc): Replace with
Mips_classify_reloc.
(Target_mips::copy_reloc): Use Mips_classify_reloc.
(Target_mips::gc_process_relocs): Likewise.
(Target_mips::scan_relocs): Likewise.
(Target_mips::relocate_section): Likewise.
(Target_mips::scan_relocatable_relocs): Likewise.
(Target_mips::relocate_relocs): Likewise.
(mips_get_size_for_reloc): New function, factored out from
Relocatable_size_for_reloc::get_size_for_reloc.
(Target_mips::Scan::local): Use Mips_classify_reloc.
(Target_mips::Scan::global): Likewise.
(Target_mips::Relocate::relocate): Likewise.
* powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
(Target_powerpc::Relocatable_size_for_reloc): Remove.
(Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
(Target_powerpc::scan_relocs): Likewise.
(Target_powerpc::relocate_section): Likewise.
(Powerpc_scan_relocatable_reloc): Convert to class template.
(Powerpc_scan_relocatable_reloc::Reltype): New typedef.
(Powerpc_scan_relocatable_reloc::reloc_size): New const.
(Powerpc_scan_relocatable_reloc::sh_type): New const.
(Powerpc_scan_relocatable_reloc::get_r_sym): New method.
(Powerpc_scan_relocatable_reloc::get_r_type): New method.
(Target_powerpc::scan_relocatable_relocs): Use
Powerpc_scan_relocatable_reloc.
(Target_powerpc::relocate_relocs): Use Default_classify_reloc.
* s390.cc (Target_s390::emit_relocs_scan): New method.
(Target_s390::Relocatable_size_for_reloc): Remove.
(Target_s390::gc_process_relocs): Use Default_classify_reloc.
(Target_s390::scan_relocs): Likewise.
(Target_s390::relocate_section): Likewise.
(Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
Remove.
(Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
(Target_s390::relocate_relocs): Use Default_classify_reloc.
* sparc.cc (Target_sparc::emit_relocs_scan): New method.
(Target_sparc::Relocatable_size_for_reloc): Remove.
(Target_sparc::gc_process_relocs): Use Default_classify_reloc.
(Target_sparc::scan_relocs): Likewise.
(Target_sparc::relocate_section): Likewise.
(Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
Remove.
(Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
(Target_sparc::relocate_relocs): Use Default_classify_reloc.
* tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
(Target_tilegx::Relocatable_size_for_reloc): Remove.
(Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
(Target_tilegx::scan_relocs): Likewise.
(Target_tilegx::relocate_section): Likewise.
(Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
Remove.
(Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
(Target_tilegx::relocate_relocs): Use Default_classify_reloc.
* x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
(Target_x86_64::Relocatable_size_for_reloc): Remove.
(Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
(Target_x86_64::scan_relocs): Likewise.
(Target_x86_64::relocate_section): Likewise.
(Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
Remove.
(Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
(Target_x86_64::relocate_relocs): Use Default_classify_reloc.
* testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
2015-12-11 16:43:59 +01:00
|
|
|
|
2016-01-11 Cary Coutant <ccoutant@gmail.com>
|
|
|
|
|
|
|
|
|
|
Refactor gold to enable support for MIPS-64 relocation format.
|
|
|
|
|
|
|
|
|
|
* gc.h (get_embedded_addend_size): Remove sh_type parameter.
|
|
|
|
|
(gc_process_relocs): Remove sh_type template parameter.
|
|
|
|
|
Use Classify_reloc to access r_sym, r_type, and r_addend fields.
|
|
|
|
|
* object.h (Sized_relobj_file::split_stack_adjust): Add target
|
|
|
|
|
parameter.
|
|
|
|
|
(Sized_relobj_file::split_stack_adjust_reltype): Likewise.
|
|
|
|
|
* reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
|
|
|
|
|
specializations) Remove.
|
|
|
|
|
* reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
|
|
|
|
|
(Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
|
|
|
|
|
(Sized_relobj_file::emit_relocs_scan_reltype): Remove.
|
|
|
|
|
(Sized_relobj_file::split_stack_adjust): Add target parameter.
|
|
|
|
|
Adjust all callers.
|
|
|
|
|
(Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
|
|
|
|
|
Target::get_r_sym() to get r_sym field from relocations.
|
|
|
|
|
(Track_relocs::next_symndx): Call Target::get_r_sym().
|
|
|
|
|
* target-reloc.h (scan_relocs): Remove sh_type template parameter;
|
|
|
|
|
add Classify_reloc template parameter. Use for accessing r_sym and
|
|
|
|
|
r_type.
|
|
|
|
|
(relocate_section): Likewise.
|
|
|
|
|
(Default_classify_reloc): New class (renamed and moved from reloc.cc).
|
|
|
|
|
(Default_scan_relocatable_relocs): Remove sh_type template parameter.
|
|
|
|
|
(Default_scan_relocatable_relocs::Reltype): New typedef.
|
|
|
|
|
(Default_scan_relocatable_relocs::reloc_size): New const.
|
|
|
|
|
(Default_scan_relocatable_relocs::sh_type): New const.
|
|
|
|
|
(Default_scan_relocatable_relocs::get_r_sym): New method.
|
|
|
|
|
(Default_scan_relocatable_relocs::get_r_type): New method.
|
|
|
|
|
(Default_emit_relocs_strategy): New class.
|
|
|
|
|
(scan_relocatable_relocs): Replace sh_type template parameter with
|
|
|
|
|
Scan_relocatable_relocs class. Use it to access r_sym and r_type
|
|
|
|
|
fields.
|
|
|
|
|
(relocate_relocs): Replace sh_type template parameter with
|
|
|
|
|
Classify_reloc class. Use it to access r_sym and r_type fields.
|
|
|
|
|
* target.h (Target::is_call_to_non_split): Replace r_type parameter
|
|
|
|
|
with pointer to relocation. Adjust all callers.
|
|
|
|
|
(Target::do_is_call_to_non_split): Likewise.
|
|
|
|
|
(Target::emit_relocs_scan): New virtual method.
|
|
|
|
|
(Sized_target::get_r_sym): New virtual method.
|
|
|
|
|
* target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
|
|
|
|
|
with pointer to relocation.
|
|
|
|
|
|
|
|
|
|
* aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
|
|
|
|
|
(Target_aarch64::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_aarch64::scan_relocs): Likewise.
|
|
|
|
|
(Target_aarch64::relocate_section): Likewise.
|
|
|
|
|
(Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
|
|
|
|
|
Remove.
|
|
|
|
|
(Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_aarch64::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
* arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
|
|
|
|
|
template parameter.
|
|
|
|
|
(Target_arm::emit_relocs_scan): New method.
|
|
|
|
|
(Target_arm::Relocatable_size_for_reloc): Replace with...
|
|
|
|
|
(Target_arm::Classify_reloc): ...this.
|
|
|
|
|
(Target_arm::gc_process_relocs): Use Classify_reloc.
|
|
|
|
|
(Target_arm::scan_relocs): Likewise.
|
|
|
|
|
(Target_arm::relocate_section): Likewise.
|
|
|
|
|
(Target_arm::scan_relocatable_relocs): Likewise.
|
|
|
|
|
(Target_arm::relocate_relocs): Likewise.
|
|
|
|
|
* i386.cc (Target_i386::emit_relocs_scan): New method.
|
|
|
|
|
(Target_i386::Relocatable_size_for_reloc): Replace with...
|
|
|
|
|
(Target_i386::Classify_reloc): ...this.
|
|
|
|
|
(Target_i386::gc_process_relocs): Use Classify_reloc.
|
|
|
|
|
(Target_i386::scan_relocs): Likewise.
|
|
|
|
|
(Target_i386::relocate_section): Likewise.
|
|
|
|
|
(Target_i386::scan_relocatable_relocs): Likewise.
|
|
|
|
|
(Target_i386::relocate_relocs): Likewise.
|
|
|
|
|
* mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
|
|
|
|
|
parameter.
|
|
|
|
|
(Mips_reloc_types): New class template.
|
|
|
|
|
(Mips_classify_reloc): New class template.
|
|
|
|
|
(Target_mips::Reltype): New typedef.
|
|
|
|
|
(Target_mips::Relatype): New typedef.
|
|
|
|
|
(Target_mips::emit_relocs_scan): New method.
|
|
|
|
|
(Target_mips::get_r_sym): New method.
|
|
|
|
|
(Target_mips::Relocatable_size_for_reloc): Replace with
|
|
|
|
|
Mips_classify_reloc.
|
|
|
|
|
(Target_mips::copy_reloc): Use Mips_classify_reloc.
|
|
|
|
|
(Target_mips::gc_process_relocs): Likewise.
|
|
|
|
|
(Target_mips::scan_relocs): Likewise.
|
|
|
|
|
(Target_mips::relocate_section): Likewise.
|
|
|
|
|
(Target_mips::scan_relocatable_relocs): Likewise.
|
|
|
|
|
(Target_mips::relocate_relocs): Likewise.
|
|
|
|
|
(mips_get_size_for_reloc): New function, factored out from
|
|
|
|
|
Relocatable_size_for_reloc::get_size_for_reloc.
|
|
|
|
|
(Target_mips::Scan::local): Use Mips_classify_reloc.
|
|
|
|
|
(Target_mips::Scan::global): Likewise.
|
|
|
|
|
(Target_mips::Relocate::relocate): Likewise.
|
|
|
|
|
* powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
|
|
|
|
|
(Target_powerpc::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_powerpc::scan_relocs): Likewise.
|
|
|
|
|
(Target_powerpc::relocate_section): Likewise.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc): Convert to class template.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc::Reltype): New typedef.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc::reloc_size): New const.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc::sh_type): New const.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc::get_r_sym): New method.
|
|
|
|
|
(Powerpc_scan_relocatable_reloc::get_r_type): New method.
|
|
|
|
|
(Target_powerpc::scan_relocatable_relocs): Use
|
|
|
|
|
Powerpc_scan_relocatable_reloc.
|
|
|
|
|
(Target_powerpc::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
* s390.cc (Target_s390::emit_relocs_scan): New method.
|
|
|
|
|
(Target_s390::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_s390::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_s390::scan_relocs): Likewise.
|
|
|
|
|
(Target_s390::relocate_section): Likewise.
|
|
|
|
|
(Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
|
|
|
|
|
Remove.
|
|
|
|
|
(Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_s390::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
* sparc.cc (Target_sparc::emit_relocs_scan): New method.
|
|
|
|
|
(Target_sparc::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_sparc::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_sparc::scan_relocs): Likewise.
|
|
|
|
|
(Target_sparc::relocate_section): Likewise.
|
|
|
|
|
(Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
|
|
|
|
|
Remove.
|
|
|
|
|
(Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_sparc::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
* tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
|
|
|
|
|
(Target_tilegx::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_tilegx::scan_relocs): Likewise.
|
|
|
|
|
(Target_tilegx::relocate_section): Likewise.
|
|
|
|
|
(Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
|
|
|
|
|
Remove.
|
|
|
|
|
(Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_tilegx::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
* x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
|
|
|
|
|
(Target_x86_64::Relocatable_size_for_reloc): Remove.
|
|
|
|
|
(Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_x86_64::scan_relocs): Likewise.
|
|
|
|
|
(Target_x86_64::relocate_section): Likewise.
|
|
|
|
|
(Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
|
|
|
|
|
Remove.
|
|
|
|
|
(Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
|
|
|
|
|
(Target_x86_64::relocate_relocs): Use Default_classify_reloc.
|
|
|
|
|
|
|
|
|
|
* testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
|
|
|
|
|
|
2016-01-01 12:25:12 +01:00
|
|
|
|
2016-01-01 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2016-01-01 11:44:31 +01:00
|
|
|
|
For older changes see ChangeLog-0815
|
|
|
|
|
|
|
|
|
|
Copyright (C) 2016 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved.
|
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|