diff options
author | Cary Coutant <ccoutant@gmail.com> | 2017-01-10 07:46:30 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2017-01-10 07:46:43 -0800 |
commit | 98461510d3a8cefa6603980294bfc647cddcab97 (patch) | |
tree | dc33202fc8f637c12ed4c36fd8fceca3548e5915 /gold/arm.cc | |
parent | df2946549f60624503663cc6c28cd5a6ef0ab434 (diff) | |
download | gdb-98461510d3a8cefa6603980294bfc647cddcab97.zip gdb-98461510d3a8cefa6603980294bfc647cddcab97.tar.gz gdb-98461510d3a8cefa6603980294bfc647cddcab97.tar.bz2 |
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.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r-- | gold/arm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/arm.cc b/gold/arm.cc index 5983128..ff472ea 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -6587,9 +6587,9 @@ Arm_relobj<big_endian>::do_relocate_sections( Output_file* of, typename Sized_relobj_file<32, big_endian>::Views* pviews) { - // Call parent to relocate sections. - Sized_relobj_file<32, big_endian>::do_relocate_sections(symtab, layout, - pshdrs, of, pviews); + // Relocate the section data. + this->relocate_section_range(symtab, layout, pshdrs, of, pviews, + 1, this->shnum() - 1); // We do not generate stubs if doing a relocatable link. if (parameters->options().relocatable()) |