mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-27 11:53:21 +08:00
Check section index as well as object when looking for input section.
This commit is contained in:
@ -839,7 +839,8 @@ Output_section::Input_section::output_address(const Relobj* object,
|
|||||||
output_section_address, poutput);
|
output_section_address, poutput);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (this->u2_.object != object)
|
if (this->shndx_ != shndx
|
||||||
|
|| this->u2_.object != object)
|
||||||
return false;
|
return false;
|
||||||
off_t output_offset;
|
off_t output_offset;
|
||||||
Output_section* os = object->output_section(shndx, &output_offset);
|
Output_section* os = object->output_section(shndx, &output_offset);
|
||||||
|
Reference in New Issue
Block a user