aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
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/object.h
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/object.h')
-rw-r--r--gold/object.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index 84fe5a6..508e79c 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