From: Kai Tietz Date: Thu, 3 Apr 2008 14:44:55 +0000 (+0000) Subject: Kai Tietz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f69259ea4a8fa974292170d02e3500cd7c3d038;p=binutils-gdb.git Kai Tietz PR ld/6026 * pe-dll.c (make_head): Fix iat and thunk addend offset. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1ed940cad0b..6a9fb9580f5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 Kai Tietz + + PR ld/6026 + * pe-dll.c (make_head): Fix iat and thunk addend offset. + 2008-03-31 Nick Clifton * po/fr.po: Updated French translation. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index c0cf63de5c6..4168aaa9cd4 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);