Refactor Sized_relobj_file::do_relocate_sections.
authorCary Coutant <ccoutant@gmail.com>
Tue, 10 Jan 2017 15:46:30 +0000 (07:46 -0800)
committerCary Coutant <ccoutant@gmail.com>
Tue, 10 Jan 2017 15:46:43 +0000 (07:46 -0800)
commit98461510d3a8cefa6603980294bfc647cddcab97
treedc33202fc8f637c12ed4c36fd8fceca3548e5915
parentdf2946549f60624503663cc6c28cd5a6ef0ab434
Refactor Sized_relobj_file::do_relocate_sections.

gold/
* aarch64.cc (AArch64_relobj::do_relocate_sections): Call
Sized_relobj_file::relocate_section_range().
* arm.cc (Arm_relobj::do_relocate_sections): Likewise.
* object.h (Sized_relobj_file::relocate_section_range): New method.
* reloc.cc (Sized_relobj_file::do_relocate_sections): Move
implementation...
(Sized_relobj_file::relocate_section_range): ...to new method.
gold/ChangeLog
gold/aarch64.cc
gold/arm.cc
gold/object.h
gold/reloc.cc