From b8a4873487ea15d1873dfaf0cb1a724a3b5fec95 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Mon, 29 Sep 2008 14:01:50 +0000 Subject: [PATCH] 2008-09-26 Kai Tietz * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend. --- ld/ChangeLog | 4 ++++ ld/pe-dll.c | 1 + 2 files changed, 5 insertions(+) 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);