Check section index as well as object when looking for input section.

This commit is contained in:
Ian Lance Taylor 2007-09-23 03:17:38 +00:00
parent c077629be8
commit 9d7094e840
1 changed files with 2 additions and 1 deletions

View File

@ -839,7 +839,8 @@ Output_section::Input_section::output_address(const Relobj* object,
output_section_address, poutput);
else
{
if (this->u2_.object != object)
if (this->shndx_ != shndx
|| this->u2_.object != object)
return false;
off_t output_offset;
Output_section* os = object->output_section(shndx, &output_offset);