summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2008-04-03 14:44:55 +0000
committerKai Tietz <kai.tietz@onevision.com>2008-04-03 14:44:55 +0000
commitbb21ca001526c080c297bc92bf29e266c916da6d (patch)
tree2cdb82f816e9e1f94ae89b1af31ef06eff4ef42a
parentd092465c19380672dd3774d3a363a9252f4dfb77 (diff)
downloadbinutils-redhat-bb21ca001526c080c297bc92bf29e266c916da6d.tar.gz
Kai Tietz <kai.tietz@onevision.com>
PR ld/6026 * pe-dll.c (make_head): Fix iat and thunk addend offset.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/pe-dll.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1ed940cad0..6a9fb9580f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-03 Kai Tietz <kai.tietz@onevision.com>
+
+ PR ld/6026
+ * pe-dll.c (make_head): Fix iat and thunk addend offset.
+
2008-03-31 Nick Clifton <nickc@redhat.com>
* po/fr.po: Updated French translation.
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index c0cf63de5c..4168aaa9cd 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -1729,7 +1729,7 @@ make_head (bfd *parent)
d2 = xmalloc (20);
id2->contents = d2;
memset (d2, 0, 20);
- d2[0] = d2[16] = 4; /* Reloc addend. */
+ d2[0] = d2[16] = PE_IDATA5_SIZE; /* Reloc addend. */
quick_reloc (abfd, 0, BFD_RELOC_RVA, 2);
quick_reloc (abfd, 12, BFD_RELOC_RVA, 4);
quick_reloc (abfd, 16, BFD_RELOC_RVA, 1);