aboutsummaryrefslogtreecommitdiff
path: root/gold/aarch64.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2017-01-10 07:46:30 -0800
committerCary Coutant <ccoutant@gmail.com>2017-01-10 07:46:43 -0800
commit98461510d3a8cefa6603980294bfc647cddcab97 (patch)
treedc33202fc8f637c12ed4c36fd8fceca3548e5915 /gold/aarch64.cc
parentdf2946549f60624503663cc6c28cd5a6ef0ab434 (diff)
downloadgdb-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/aarch64.cc')
-rw-r--r--gold/aarch64.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/aarch64.cc b/gold/aarch64.cc
index facbbd8..b207dcd 100644
--- a/gold/aarch64.cc
+++ b/gold/aarch64.cc
@@ -2044,9 +2044,9 @@ AArch64_relobj<size, big_endian>::do_relocate_sections(
const unsigned char* pshdrs, Output_file* of,
typename Sized_relobj_file<size, big_endian>::Views* pviews)
{
- // Call parent to relocate sections.
- Sized_relobj_file<size, 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())