diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2013-03-21 14:07:08 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2013-03-21 14:07:08 +0000 |
commit | ce63b7b388b808bf574fe2d1de675b038857312e (patch) | |
tree | 358cd88b0a6ffb93939d935e83e15113d38763f5 /bfd/peXXigen.c | |
parent | 31fd86f1cf4e96c59614385d8038ed521f31ee1e (diff) | |
download | gdb-ce63b7b388b808bf574fe2d1de675b038857312e.zip gdb-ce63b7b388b808bf574fe2d1de675b038857312e.tar.gz gdb-ce63b7b388b808bf574fe2d1de675b038857312e.tar.bz2 |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 0e0056e..d0f7a96 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 = |