From: Kai Tietz Date: Mon, 29 Sep 2008 14:01:50 +0000 (+0000) Subject: 2008-09-26 Kai Tietz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8a4873487ea15d1873dfaf0cb1a724a3b5fec95;p=binutils-gdb.git 2008-09-26 Kai Tietz * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 9fda0cb0da2..0059072057f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2008-09-29 Kai Tietz + + * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend. + 2008-09-29 Nick Clifton * po/vi.po: Updated Vietnamese translation. diff --git a/ld/pe-dll.c b/ld/pe-dll.c index ea84999cef7..bf4b5093336 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -2242,6 +2242,7 @@ make_import_fixup_entry (const char *name, d2 = xmalloc (20); id2->contents = d2; memset (d2, 0, 20); + d2[0] = d2[16] = PE_IDATA5_SIZE; /* Reloc addend. */ quick_reloc (abfd, 0, BFD_RELOC_RVA, 1); quick_reloc (abfd, 12, BFD_RELOC_RVA, 2);