aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-23 03:17:38 +0000
committerIan Lance Taylor <iant@google.com>2007-09-23 03:17:38 +0000
commit9d7094e840caf05b8eb082d7fad5fe374b11e05c (patch)
tree389c156f7533c7124f5cd9ebd113433ce6e5ddd1 /gold/output.cc
parentc077629be8c6c1021243e0efe48cc56a3c434626 (diff)
downloadgdb-9d7094e840caf05b8eb082d7fad5fe374b11e05c.zip
gdb-9d7094e840caf05b8eb082d7fad5fe374b11e05c.tar.gz
gdb-9d7094e840caf05b8eb082d7fad5fe374b11e05c.tar.bz2
Check section index as well as object when looking for input section.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 9fc3103..6d782e2 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);