aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-06-29 21:26:40 +0000
committerIan Lance Taylor <ian@airs.com>2011-06-29 21:26:40 +0000
commit886f533adaf49c51722d4b02a309e88dd8c1c239 (patch)
tree130f63d0501a03ee8b6c36227576821cb332f2ea /gold/layout.h
parenta4e064680b35eab949a2511d159bc9fe921f84e7 (diff)
downloadgdb-886f533adaf49c51722d4b02a309e88dd8c1c239.zip
gdb-886f533adaf49c51722d4b02a309e88dd8c1c239.tar.gz
gdb-886f533adaf49c51722d4b02a309e88dd8c1c239.tar.bz2
PR gold/12695
* layout.cc (Layout::symtab_section_shndx): New function. * layout.h (class Layout): Declare symtab_section_shndx. * output.cc (Output_section::write_header): Call it.
Diffstat (limited to 'gold/layout.h')
-rw-r--r--gold/layout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h
index 4a437b5..4790584 100644
--- a/gold/layout.h
+++ b/gold/layout.h
@@ -701,6 +701,10 @@ class Layout
off_t
symtab_section_offset() const;
+ // Return the section index of the normal symbol tabl.e
+ unsigned int
+ symtab_section_shndx() const;
+
// Return the dynamic symbol table.
Output_section*
dynsym_section() const