diff options
author | Cary Coutant <ccoutant@google.com> | 2011-04-14 23:29:41 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-04-14 23:29:41 +0000 |
commit | bec5b57944f72ea8b37f1ceccec3655c6b718042 (patch) | |
tree | 39b82e2a2a72de04d19c17eab57857d56a25595a /gold/layout.cc | |
parent | 902cc293a01e649f45869d567e957cc303e44b96 (diff) | |
download | gdb-bec5b57944f72ea8b37f1ceccec3655c6b718042.zip gdb-bec5b57944f72ea8b37f1ceccec3655c6b718042.tar.gz gdb-bec5b57944f72ea8b37f1ceccec3655c6b718042.tar.bz2 |
* gold/layout.cc (Layout::symtab_section_offset): New function.
* gold/layout.h (Layout::symtab_section_offset): New function.
* gold/reloc.cc (Sized_relobj::do_relocate): Call it.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 26ac130d..7afb21f 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -4371,6 +4371,16 @@ Layout::make_output_segment(elfcpp::Elf_Word type, elfcpp::Elf_Word flags) return oseg; } +// Return the file offset of the normal symbol table. + +off_t +Layout::symtab_section_offset() const +{ + if (this->symtab_section_ != NULL) + return this->symtab_section_->offset(); + return 0; +} + // Write out the Output_sections. Most won't have anything to write, // since most of the data will come from input sections which are // handled elsewhere. But some Output_sections do have Output_data. |