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/coffgen.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/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 7d48ea9..07a527d 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -221,8 +221,12 @@ make_a_section_from_file (bfd *abfd, /* Read in a COFF object and make it into a BFD. This is used by ECOFF as well. */ - -static const bfd_target * +const bfd_target * +coff_real_object_p (bfd *, + unsigned, + struct internal_filehdr *, + struct internal_aouthdr *); +const bfd_target * coff_real_object_p (bfd *abfd, unsigned nscns, struct internal_filehdr *internal_f, |