From 30ba46c5e3cde18aacd4959366f57a8debe723d2 Mon Sep 17 00:00:00 2001 From: iant Date: Sun, 23 Sep 2007 03:17:38 +0000 Subject: [PATCH] Check section index as well as object when looking for input section. --- gold/output.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gold/output.cc b/gold/output.cc index 9fc3103138..6d782e2772 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); -- 2.11.0