Kai Tietz <kai.tietz@onevision.com>

PR ld/6026
	* pe-dll.c (make_head): Fix iat and thunk addend offset.
This commit is contained in:
Kai Tietz 2008-04-03 14:44:55 +00:00
parent 126f3ece27
commit 5f69259ea4
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);