summaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2013-03-21 14:07:08 +0000
committerKai Tietz <kai.tietz@onevision.com>2013-03-21 14:07:08 +0000
commit67eff5e24ee47fab430c5192d98950c95d06bcd1 (patch)
tree1200d2efa2be5f69f4f1bee35876b916cbd70c9d /bfd/peXXigen.c
parent20d668f1f4a10f96fe914c7a6a2375d8860d6e1b (diff)
downloadbinutils-redhat-67eff5e24ee47fab430c5192d98950c95d06bcd1.tar.gz
* coffgen.c (coff_real_object_p): Make global.
* peicode.h (coff_real_object_p): Add prototype. (FILHDR): Defined for COFF_IMAGE_WITH_PE as external_PEI_IMAGE_hdr structure. (coff_swap_filehdr_in): Handle variable header-size. * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount of directory-entiries as specified in pe-header.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index 0e0056e6ee..d0f7a96e1f 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -461,7 +461,7 @@ _bfd_XXi_swap_aouthdr_in (bfd * abfd,
{
int idx;
- for (idx = 0; idx < 16; idx++)
+ for (idx = 0; idx < a->NumberOfRvaAndSizes; idx++)
{
/* If data directory is empty, rva also should be 0. */
int size =