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/object.h | |
parent | df2946549f60624503663cc6c28cd5a6ef0ab434 (diff) | |
download | binutils-gdb-98461510d3a8cefa6603980294bfc647cddcab97.tar.gz |
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/object.h')
-rw-r--r-- | gold/object.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h index 84fe5a64e0a..508e79cb3c0 100644 --- a/gold/object.h +++ b/gold/object.h @@ -2562,6 +2562,13 @@ class Sized_relobj_file : public Sized_relobj<size, big_endian> const unsigned char* pshdrs, Output_file* of, Views* pviews); + // Relocate section data for a range of sections. + void + relocate_section_range(const Symbol_table* symtab, const Layout* layout, + const unsigned char* pshdrs, Output_file* of, + Views* pviews, unsigned int start_shndx, + unsigned int end_shndx); + // Adjust this local symbol value. Return false if the symbol // should be discarded from the output file. virtual bool |