* object.h (Sized_relobj_file::adjust_local_symbol,
authorAlan Modra <amodra@gmail.com>
Tue, 25 Sep 2012 00:59:25 +0000 (00:59 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 25 Sep 2012 00:59:25 +0000 (00:59 +0000)
commitec4dbad32d15acd95084aea6145486dac5a19948
treed100fe6ede32917d61224bd18e241485f913cae2
parenta1e5fd6938feffd9c7f2d9732b59413d210602a6
* object.h (Sized_relobj_file::adjust_local_symbol,
do_adjust_local_symbol): New functions.
* object.cc (Sized_relobj_file::do_count_local_symbols): Use the above.
* powerpc.cc (Powerpc_relobj::do_adjust_local_symbol): New function.
(Powerpc_relobj::scan_opd_relocs): Warn on unexpected opd relocs
and irregular opd entry spacing.
(Powerpc_relobj::do_read_relocs): Add opd size checks.
(Global_symbol_visitor_opd): New functor.
(Target_powerpc::do_finalize_sections): Omit global symbols defined
on deleted opd entries.
gold/ChangeLog
gold/object.cc
gold/object.h
gold/powerpc.cc