[GOLD] Relocate::relocate() params
[binutils-gdb.git] / gold / ChangeLog
index 5aa49d4787a5a57714240cf8d5022df74c4f4426..be004cd1e550753cb18703414eec850afdd951ef 100644 (file)
@@ -1,3 +1,132 @@
+2015-12-09  Alan Modra  <amodra@gmail.com>
+
+       * object.h (struct Relocate_info): Add "rr".
+       * reloc.h (Relocatable_relocs::set_strategy): New accessor.
+       * reloc.cc (Sized_relobj_file::do_relocate_sections): Init
+       relinfo.rr for relocate_section and relocate_relocs.
+       * powerpc.cc (relocate): Add rel_type and preloc parameters.
+       Delete rela and r_type params, instead recalculate these from
+       preloc.
+       (relocate_relocs): Delete Relocatable_relocs* param, instead
+       use relinfo->rr.
+       * aarch64.cc: Likewise.
+       * arm.cc: Likewise.
+       * i386.cc: Likewise.
+       * mips.cc: Likewise.
+       * s390.cc: Likewise.
+       * sparc.cc: Likewise.
+       * target.h: Likewise.
+       * tilegx.cc: Likewise.
+       * x86_64.cc: Likewise.
+       * testsuite/testfile.cc: Likewise.
+       * target-reloc.h (relocate_section): Adjust to suit.
+       (apply_relocation, relocate_relocs): Likewise.
+
+2015-12-07  Alan Modra  <amodra@gmail.com>
+
+       * powerpc.cc (add_2_2_12, ld_2_12, lis_2): Define.
+       (Target_powerpc::Scan::local, global): Handle R_PPC64_ENTRY.
+       (Target_powerpc::Relocate::relocate): Edit code at R_PPC64_ENTRY.
+
+2015-12-03  Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+       * object.cc (Sized_relobj::do_for_all_local_got_entries): Use
+       Local_got_entry_key for searching in local_got_offsets_.
+       * object.h (class Local_got_entry_key): New class.
+       (Relobj::local_has_got_offset): New overloaded method.
+       (Relobj::local_got_offset): Likewise.
+       (Relobj::set_local_got_offset): Likewise.
+       (Relobj::do_local_has_got_offset): Add addend argument.
+       (Relobj::do_local_got_offset): Likewise.
+       (Relobj::do_set_local_got_offset): Likewise.
+       (Sized_relobj::do_local_has_got_offset): Add addend argument, and use
+       Local_got_entry_key for searching through local_got_offsets_.
+       (Sized_relobj::do_local_got_offset): Likewise.
+       (Sized_relobj::do_set_local_got_offset): Likewise.
+       (Sized_relobj::Local_got_offsets): Change type of the key from
+       unsigned int to Local_got_entry_key, and add hash and equal_to.
+       * output.cc (Got_entry::write): Take addend into account for
+       calculating value of the local symbol for GOT.
+       (Output_data_got::add_local): New definition of overloaded method.
+       (Output_data_got::add_local_with_rel): Likewise.
+       (Output_data_got::add_local_pair_with_rel): Likewise.
+       * output.h (Output_data_got::add_local): New declaration of overloaded
+       method.
+
+2015-11-25  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/19291
+       * object.cc (Sized_relobj_file::write_local_symbols): If relocatable,
+       subtract section address from symbol value.
+
+2015-11-25  Alan Modra  <amodra@gmail.com>
+
+       * powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align
+       to 256 byte boundary.
+
+2015-11-19  Alan Modra  <amodra@gmail.com>
+
+       * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct
+       GOT16 and TOC16 relocs to RELATIVE_REF.
+
+2015-11-14  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/19244
+       PR gold/18548
+       * symtab.cc (Symbol_table::do_define_in_output_data): Check for forced
+       local symbols only for predefined symbols.
+
+2015-11-11  Alan Modra  <amodra@gmail.com>
+           Peter Bergner <bergner@vnet.ibm.com>
+
+       * gold/powerpc.cc (Powerpc_relocate_functions::addr16_dq): New function.
+       (Powerpc_relocate_functions::addr16dx_ha): Likewise.
+       (Target_powerpc::Scan::local): Handle R_POWERPC_REL16DX_HA.
+       (Target_powerpc::Scan::global): Likewise.
+       (Target_powerpc::Relocate::relocate): Likewise.
+
+2015-11-09  Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+       * layout.h (Layout::is_debug_info_section): Recognize .pdr debug
+       sections.
+
+2015-11-09  Cary Coutant  <ccoutant@gmail.com>
+           Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+       * copy-relocs.h (Copy_relocs::copy_reloc): Replace reloc parameter
+       with type, offset, addend.
+       (Copy_relocs::save): Likewise.
+       * copy-relocs.cc (Copy_relocs::copy_reloc): Likewise.
+       (Copy_relocs::save): Likewise.
+       * aarch64.cc (Target_aarch64::copy_reloc): Pass r_type, r_offset,
+       and r_addend to Copy_relocs::copy_reloc.
+       * arm.cc (Target_arm::copy_reloc): Likewise.
+       * i386.cc (Target_i386::copy_reloc): Likewise.
+       * mips.cc (Target_mips::copy_reloc): Likewise.
+       * powerpc.cc (Target_powerpc::copy_reloc): Likewise.
+       * s390.cc (Target_s390::copy_reloc): Likewise.
+       * sparc.cc (Target_sparc::copy_reloc): Likewise.
+       * tilegx.cc (Target_tilegx::copy_reloc): Likewise.
+       * x86_64.cc (Target_x86_64::copy_reloc): Likewise.
+
+2015-11-05  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/19119
+       PR gold/19172
+       PR gold/19197
+       Revert commit 6457197210144f50a696097c0d308d81d46d5510:
+       2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
+               * options.h (General_options): Remove "obsolete" from -m.
+               * parameters.cc (set_parameters_target): Check if input target
+               is compatible with output emulation set by "-m emulation".
+
+2015-11-05  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/19163
+       * aarch64.cc (Target_aarch64::Relocate::relocate): Don't apply
+       certain relocations if --no-apply-dynamic-relocs is set.
+       * options.h (--apply-dynamic-relocs): New aarch64-specific option.
+
 2015-11-03  Alan Modra  <amodra@gmail.com>
 
        * po/POTFILES.in: Regenerate.