2010-01-13 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Wed, 13 Jan 2010 21:36:47 +0000 (21:36 +0000)
committerDoug Kwan <dougkwan@google.com>
Wed, 13 Jan 2010 21:36:47 +0000 (21:36 +0000)
commit44272192844d2f863f04c7addf39302dca38ef33
tree5eb5c771d1aafe1d47403fd197ea515ef5897e68
parent44b71ece3c8c962cfd6074019df3abf8e815cce0
2010-01-13  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::section_needs_reloc_stub_scanning,
Arm_relobj::section_needs_cortex_a8_stub_scanning,
Arm_relobj::scan_section_for_cortex_a8_erratum,
Arm_relobj::scan_span_for_cortex_a8_erratum): New methods.
(Arm_relobj::scan_sections_for_stubs): Move code deciding what
sections to scan for relocation stubs into a new method
Arm_relobj::section_needs_reloc_stub_scanning.  Handle both
relocation and Cortex-A8 stub scanning.
(Target_arm::do_relax): Force stubs to be after stubbed sections
if fixing the Cortex-A8 erratum.  Remove all Cortex-A8 stubs at
the beginning of a new relaxation pass.  Update a comment.
(Target_arm::scan_span_for_cortex_a8_erratum): New method definition.
gold/ChangeLog
gold/arm.cc