* object.h (Sized_relobj_file::find_shdr): New function.
authorAlan Modra <amodra@gmail.com>
Sat, 11 Aug 2012 04:41:28 +0000 (04:41 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 11 Aug 2012 04:41:28 +0000 (04:41 +0000)
commitcf43a2fe99107aae4bfdf9bae8380729fb2c7b64
tree8bc1af6d3b4dca7f1e671eea1fbe8b7bfb7bf236
parentbad7670a0e26d425d660376c6ac3ccc867783d32
* object.h (Sized_relobj_file::find_shdr): New function.
(Sized_relobj_file::find_special_sections): New function.
* object.cc (Sized_relobj_file::find_shdr): New function.
(Sized_relobj_file::find_eh_frame): Use find_shdr.
(Sized_relobj_file::find_special_sections): New function, split out..
(Sized_relobj_file::do_read_symbols): ..from here.
* output.h (Output_data_got::replace_constant): New function.
(Output_data_got::num_entries): New function.
(Output_data_got::last_got_offset,set_got_size): Use num_entries.
(Output_data_got::got_offset): Protected rather than private.
(Output_data_got::replace_got_entry): New function.
* output.cc (Output_data_got::replace_got_entry): New function.
* powerpc.cc (class Powerpc_relobj): New.
(class Powerpc_relocate_functions): Delete all psymval variants or
convert to value,addend type.  Delete pcrela, pcrela_unaligned.
Implement _ha functions using corresponding _hi function.
(Powerpc_relobj::find_special_sections): New function.
(Target_powerpc::do_make_elf_object): New function.
(class Output_data_got_powerpc): New.
(class Output_data_glink): New.
(class Powerpc_scan_relocatable_reloc): New.
Many more changes througout file.
gold/ChangeLog
gold/object.cc
gold/object.h
gold/output.cc
gold/output.h
gold/powerpc.cc