Fix internal error with LTO on ARM.
authorCary Coutant <ccoutant@google.com>
Mon, 7 Jul 2014 17:14:45 +0000 (10:14 -0700)
committerCary Coutant <ccoutant@google.com>
Tue, 8 Jul 2014 17:44:09 +0000 (10:44 -0700)
commitf35c4853cc5b0e51d8a460be390f7a20cd44ba44
tree5b082da36bcbf9b57c3064b2461229294e71ce69
parentb484180108158f427f3637987de02199416ed53a
Fix internal error with LTO on ARM.

This prevents the target-specific do_read_symbols methods from being called
twice when do_layout_deferred_sections needs to layout an .eh_frame section.

gold/
PR gold/15639
* dynobj.h (Sized_dynobj::base_read_symbols): New method.
* dynobj.cc (Sized_dynobj::do_read_symbols): Move body to...
(Sized_dynobj::base_read_symbols): ...new method.
* object.h (Sized_relobj_file::base_read_symbols): New method.
* object.cc (Sized_relobj_file::do_read_symbols): Move body to...
(Sized_relobj_file::base_read_symbols): ...new method.
* arm.cc (Arm_relobj::do_read_symbols): Call base_read_symbols.
* mips.cc: (Mips_relobj::do_read_symbols): Likewise.
* powerpc.cc (Powerpc_dynobj::do_read_symbols): Likewise.
gold/ChangeLog
gold/arm.cc
gold/dynobj.cc
gold/dynobj.h
gold/mips.cc
gold/object.cc
gold/object.h
gold/powerpc.cc