From: Ian Lance Taylor Date: Sun, 23 Sep 2007 03:17:38 +0000 (+0000) Subject: Check section index as well as object when looking for input section. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d7094e840caf05b8eb082d7fad5fe374b11e05c;p=binutils-gdb.git Check section index as well as object when looking for input section. --- diff --git a/gold/output.cc b/gold/output.cc index 9fc31031387..6d782e2772a 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -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);