mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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.
This commit is contained in:
@@ -4536,6 +4536,17 @@ Layout::symtab_section_offset() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Return the section index of the normal symbol table. It may have
|
||||
// been stripped by the -s/--strip-all option.
|
||||
|
||||
unsigned int
|
||||
Layout::symtab_section_shndx() const
|
||||
{
|
||||
if (this->symtab_section_ != NULL)
|
||||
return this->symtab_section_->out_shndx();
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user