* powerpc.cc: Formatting and white space.
authorAlan Modra <amodra@gmail.com>
Sat, 18 Aug 2012 11:12:50 +0000 (11:12 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 18 Aug 2012 11:12:50 +0000 (11:12 +0000)
commitc9269dff6754a6178d4c7397060d83be1b2a91dc
tree2bd815e2f5488a835a04a74f16619994b642b300
parent13c9750ebf22e1c5e3a645e06a638f7e10f3bcc4
* powerpc.cc: Formatting and white space.
(Powerpc_relobj): Rename got2_section_ to special_.
Add opd_ent_shndx_ and opd_ent_off_ vectors.
(Powerpc_relobj::opd_shndx, init_opd, get_opd_ent, set_opd_ent,
scan_opd_relocs, do_read_relocs, opd_ent_ndx): New functions.
(Target_powerpc): Add Address typedef and invalid_address.  Use
throughout.
(Target_powerpc::is_branch_reloc): New function.
(Powerpc_relocate_functions): Add Address typedef, use throughout.
(Powerpc_relocate_functions:rela, rela_ua): Correct type used
for dst_mask, value and addend.
(Powerpc_relobj::do_find_special_sections): Find .opd for 64-bit.
(ld_2_1, cror_15_15_15, cror_31_31_31): New insn constants.
(Output_data_glink::do_write): Correct toc base.  Don't try to use
uint16_t for 24-bit offset.  Use get_output_section_offset and
check return.
(Target_powerpc::Scan::local): Handle more relocs.
(Target_powerpc::do_finalize_sections): Set up DT_PPC64_GLINK.
(Target_powerpc::Relocate::relocate): Correct toc base calculation.
Plug in toc restoring insn after plt calls.  Translate branches
to function descriptor symbols to corresponding entry point.
(Target_powerpc::relocate_for_relocatable): Check return from
get_output_section_offset.
* symtab.h: Comment typo.
gold/ChangeLog
gold/powerpc.cc
gold/symtab.h