aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
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/output.cc
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/output.cc')
-rw-r--r--gold/output.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 8912c4e..8a781c5 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -3390,7 +3390,7 @@ Output_section::write_header(const Layout* layout,
if (this->link_section_ != NULL)
oshdr->put_sh_link(this->link_section_->out_shndx());
else if (this->should_link_to_symtab_)
- oshdr->put_sh_link(layout->symtab_section()->out_shndx());
+ oshdr->put_sh_link(layout->symtab_section_shndx());
else if (this->should_link_to_dynsym_)
oshdr->put_sh_link(layout->dynsym_section()->out_shndx());
else