OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [VER_5_3/] [gdb-5.3/] [bfd/] [libpei.h] - Diff between revs 1182 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1182 Rev 1765
/* Support for the generic parts of PE/PEI; common header information.
/* Support for the generic parts of PE/PEI; common header information.
   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Written by Cygnus Solutions.
   Written by Cygnus Solutions.
 
 
This file is part of BFD, the Binary File Descriptor library.
This file is part of BFD, the Binary File Descriptor library.
 
 
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
(at your option) any later version.
 
 
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
/*
/*
Most of this hacked by  Steve Chamberlain,
Most of this hacked by  Steve Chamberlain,
                        sac@cygnus.com
                        sac@cygnus.com
 
 
PE/PEI rearrangement (and code added): Donn Terry
PE/PEI rearrangement (and code added): Donn Terry
                                       Softway Systems, Inc.
                                       Softway Systems, Inc.
*/
*/
 
 
/* Hey look, some documentation [and in a place you expect to find it]!
/* Hey look, some documentation [and in a place you expect to find it]!
 
 
   The main reference for the pei format is "Microsoft Portable Executable
   The main reference for the pei format is "Microsoft Portable Executable
   and Common Object File Format Specification 4.1".  Get it if you need to
   and Common Object File Format Specification 4.1".  Get it if you need to
   do some serious hacking on this code.
   do some serious hacking on this code.
 
 
   Another reference:
   Another reference:
   "Peering Inside the PE: A Tour of the Win32 Portable Executable
   "Peering Inside the PE: A Tour of the Win32 Portable Executable
   File Format", MSJ 1994, Volume 9.
   File Format", MSJ 1994, Volume 9.
 
 
   The *sole* difference between the pe format and the pei format is that the
   The *sole* difference between the pe format and the pei format is that the
   latter has an MSDOS 2.0 .exe header on the front that prints the message
   latter has an MSDOS 2.0 .exe header on the front that prints the message
   "This app must be run under Windows." (or some such).
   "This app must be run under Windows." (or some such).
   (FIXME: Whether that statement is *really* true or not is unknown.
   (FIXME: Whether that statement is *really* true or not is unknown.
   Are there more subtle differences between pe and pei formats?
   Are there more subtle differences between pe and pei formats?
   For now assume there aren't.  If you find one, then for God sakes
   For now assume there aren't.  If you find one, then for God sakes
   document it here!)
   document it here!)
 
 
   The Microsoft docs use the word "image" instead of "executable" because
   The Microsoft docs use the word "image" instead of "executable" because
   the former can also refer to a DLL (shared library).  Confusion can arise
   the former can also refer to a DLL (shared library).  Confusion can arise
   because the `i' in `pei' also refers to "image".  The `pe' format can
   because the `i' in `pei' also refers to "image".  The `pe' format can
   also create images (i.e. executables), it's just that to run on a win32
   also create images (i.e. executables), it's just that to run on a win32
   system you need to use the pei format.
   system you need to use the pei format.
 
 
   FIXME: Please add more docs here so the next poor fool that has to hack
   FIXME: Please add more docs here so the next poor fool that has to hack
   on this code has a chance of getting something accomplished without
   on this code has a chance of getting something accomplished without
   wasting too much time.
   wasting too much time.
*/
*/
 
 
#ifndef GET_FCN_LNNOPTR
#ifndef GET_FCN_LNNOPTR
#define GET_FCN_LNNOPTR(abfd, ext) \
#define GET_FCN_LNNOPTR(abfd, ext) \
  H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
  H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
#endif
#endif
 
 
#ifndef GET_FCN_ENDNDX
#ifndef GET_FCN_ENDNDX
#define GET_FCN_ENDNDX(abfd, ext) \
#define GET_FCN_ENDNDX(abfd, ext) \
  H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx)
  H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx)
#endif
#endif
 
 
#ifndef PUT_FCN_LNNOPTR
#ifndef PUT_FCN_LNNOPTR
#define PUT_FCN_LNNOPTR(abfd, in, ext) \
#define PUT_FCN_LNNOPTR(abfd, in, ext) \
  H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
  H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr)
#endif
#endif
#ifndef PUT_FCN_ENDNDX
#ifndef PUT_FCN_ENDNDX
#define PUT_FCN_ENDNDX(abfd, in, ext) \
#define PUT_FCN_ENDNDX(abfd, in, ext) \
  H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx)
  H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx)
#endif
#endif
#ifndef GET_LNSZ_LNNO
#ifndef GET_LNSZ_LNNO
#define GET_LNSZ_LNNO(abfd, ext) \
#define GET_LNSZ_LNNO(abfd, ext) \
  H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno)
  H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno)
#endif
#endif
#ifndef GET_LNSZ_SIZE
#ifndef GET_LNSZ_SIZE
#define GET_LNSZ_SIZE(abfd, ext) \
#define GET_LNSZ_SIZE(abfd, ext) \
  H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_size)
  H_GET_16 (abfd, ext->x_sym.x_misc.x_lnsz.x_size)
#endif
#endif
#ifndef PUT_LNSZ_LNNO
#ifndef PUT_LNSZ_LNNO
#define PUT_LNSZ_LNNO(abfd, in, ext) \
#define PUT_LNSZ_LNNO(abfd, in, ext) \
  H_PUT_16(abfd, in, ext->x_sym.x_misc.x_lnsz.x_lnno)
  H_PUT_16(abfd, in, ext->x_sym.x_misc.x_lnsz.x_lnno)
#endif
#endif
#ifndef PUT_LNSZ_SIZE
#ifndef PUT_LNSZ_SIZE
#define PUT_LNSZ_SIZE(abfd, in, ext) \
#define PUT_LNSZ_SIZE(abfd, in, ext) \
  H_PUT_16(abfd, in, ext->x_sym.x_misc.x_lnsz.x_size)
  H_PUT_16(abfd, in, ext->x_sym.x_misc.x_lnsz.x_size)
#endif
#endif
#ifndef GET_SCN_SCNLEN
#ifndef GET_SCN_SCNLEN
#define GET_SCN_SCNLEN(abfd, ext) \
#define GET_SCN_SCNLEN(abfd, ext) \
  H_GET_32 (abfd, ext->x_scn.x_scnlen)
  H_GET_32 (abfd, ext->x_scn.x_scnlen)
#endif
#endif
#ifndef GET_SCN_NRELOC
#ifndef GET_SCN_NRELOC
#define GET_SCN_NRELOC(abfd, ext) \
#define GET_SCN_NRELOC(abfd, ext) \
  H_GET_16 (abfd, ext->x_scn.x_nreloc)
  H_GET_16 (abfd, ext->x_scn.x_nreloc)
#endif
#endif
#ifndef GET_SCN_NLINNO
#ifndef GET_SCN_NLINNO
#define GET_SCN_NLINNO(abfd, ext) \
#define GET_SCN_NLINNO(abfd, ext) \
  H_GET_16 (abfd, ext->x_scn.x_nlinno)
  H_GET_16 (abfd, ext->x_scn.x_nlinno)
#endif
#endif
#ifndef PUT_SCN_SCNLEN
#ifndef PUT_SCN_SCNLEN
#define PUT_SCN_SCNLEN(abfd, in, ext) \
#define PUT_SCN_SCNLEN(abfd, in, ext) \
  H_PUT_32(abfd, in, ext->x_scn.x_scnlen)
  H_PUT_32(abfd, in, ext->x_scn.x_scnlen)
#endif
#endif
#ifndef PUT_SCN_NRELOC
#ifndef PUT_SCN_NRELOC
#define PUT_SCN_NRELOC(abfd, in, ext) \
#define PUT_SCN_NRELOC(abfd, in, ext) \
  H_PUT_16(abfd, in, ext->x_scn.x_nreloc)
  H_PUT_16(abfd, in, ext->x_scn.x_nreloc)
#endif
#endif
#ifndef PUT_SCN_NLINNO
#ifndef PUT_SCN_NLINNO
#define PUT_SCN_NLINNO(abfd, in, ext) \
#define PUT_SCN_NLINNO(abfd, in, ext) \
  H_PUT_16(abfd,in, ext->x_scn.x_nlinno)
  H_PUT_16(abfd,in, ext->x_scn.x_nlinno)
#endif
#endif
#ifndef GET_LINENO_LNNO
#ifndef GET_LINENO_LNNO
#define GET_LINENO_LNNO(abfd, ext) \
#define GET_LINENO_LNNO(abfd, ext) \
  H_GET_16 (abfd, ext->l_lnno);
  H_GET_16 (abfd, ext->l_lnno);
#endif
#endif
#ifndef PUT_LINENO_LNNO
#ifndef PUT_LINENO_LNNO
#define PUT_LINENO_LNNO(abfd, val, ext) \
#define PUT_LINENO_LNNO(abfd, val, ext) \
  H_PUT_16(abfd,val, ext->l_lnno);
  H_PUT_16(abfd,val, ext->l_lnno);
#endif
#endif
 
 
/* The f_symptr field in the filehdr is sometimes 64 bits.  */
/* The f_symptr field in the filehdr is sometimes 64 bits.  */
#ifndef GET_FILEHDR_SYMPTR
#ifndef GET_FILEHDR_SYMPTR
#define GET_FILEHDR_SYMPTR H_GET_32
#define GET_FILEHDR_SYMPTR H_GET_32
#endif
#endif
#ifndef PUT_FILEHDR_SYMPTR
#ifndef PUT_FILEHDR_SYMPTR
#define PUT_FILEHDR_SYMPTR H_PUT_32
#define PUT_FILEHDR_SYMPTR H_PUT_32
#endif
#endif
 
 
/* Some fields in the aouthdr are sometimes 64 bits.  */
/* Some fields in the aouthdr are sometimes 64 bits.  */
#ifndef GET_AOUTHDR_TSIZE
#ifndef GET_AOUTHDR_TSIZE
#define GET_AOUTHDR_TSIZE H_GET_32
#define GET_AOUTHDR_TSIZE H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_TSIZE
#ifndef PUT_AOUTHDR_TSIZE
#define PUT_AOUTHDR_TSIZE H_PUT_32
#define PUT_AOUTHDR_TSIZE H_PUT_32
#endif
#endif
#ifndef GET_AOUTHDR_DSIZE
#ifndef GET_AOUTHDR_DSIZE
#define GET_AOUTHDR_DSIZE H_GET_32
#define GET_AOUTHDR_DSIZE H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_DSIZE
#ifndef PUT_AOUTHDR_DSIZE
#define PUT_AOUTHDR_DSIZE H_PUT_32
#define PUT_AOUTHDR_DSIZE H_PUT_32
#endif
#endif
#ifndef GET_AOUTHDR_BSIZE
#ifndef GET_AOUTHDR_BSIZE
#define GET_AOUTHDR_BSIZE H_GET_32
#define GET_AOUTHDR_BSIZE H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_BSIZE
#ifndef PUT_AOUTHDR_BSIZE
#define PUT_AOUTHDR_BSIZE H_PUT_32
#define PUT_AOUTHDR_BSIZE H_PUT_32
#endif
#endif
#ifndef GET_AOUTHDR_ENTRY
#ifndef GET_AOUTHDR_ENTRY
#define GET_AOUTHDR_ENTRY H_GET_32
#define GET_AOUTHDR_ENTRY H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_ENTRY
#ifndef PUT_AOUTHDR_ENTRY
#define PUT_AOUTHDR_ENTRY H_PUT_32
#define PUT_AOUTHDR_ENTRY H_PUT_32
#endif
#endif
#ifndef GET_AOUTHDR_TEXT_START
#ifndef GET_AOUTHDR_TEXT_START
#define GET_AOUTHDR_TEXT_START H_GET_32
#define GET_AOUTHDR_TEXT_START H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_TEXT_START
#ifndef PUT_AOUTHDR_TEXT_START
#define PUT_AOUTHDR_TEXT_START H_PUT_32
#define PUT_AOUTHDR_TEXT_START H_PUT_32
#endif
#endif
#ifndef GET_AOUTHDR_DATA_START
#ifndef GET_AOUTHDR_DATA_START
#define GET_AOUTHDR_DATA_START H_GET_32
#define GET_AOUTHDR_DATA_START H_GET_32
#endif
#endif
#ifndef PUT_AOUTHDR_DATA_START
#ifndef PUT_AOUTHDR_DATA_START
#define PUT_AOUTHDR_DATA_START H_PUT_32
#define PUT_AOUTHDR_DATA_START H_PUT_32
#endif
#endif
 
 
/* Some fields in the scnhdr are sometimes 64 bits.  */
/* Some fields in the scnhdr are sometimes 64 bits.  */
#ifndef GET_SCNHDR_PADDR
#ifndef GET_SCNHDR_PADDR
#define GET_SCNHDR_PADDR H_GET_32
#define GET_SCNHDR_PADDR H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_PADDR
#ifndef PUT_SCNHDR_PADDR
#define PUT_SCNHDR_PADDR H_PUT_32
#define PUT_SCNHDR_PADDR H_PUT_32
#endif
#endif
#ifndef GET_SCNHDR_VADDR
#ifndef GET_SCNHDR_VADDR
#define GET_SCNHDR_VADDR H_GET_32
#define GET_SCNHDR_VADDR H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_VADDR
#ifndef PUT_SCNHDR_VADDR
#define PUT_SCNHDR_VADDR H_PUT_32
#define PUT_SCNHDR_VADDR H_PUT_32
#endif
#endif
#ifndef GET_SCNHDR_SIZE
#ifndef GET_SCNHDR_SIZE
#define GET_SCNHDR_SIZE H_GET_32
#define GET_SCNHDR_SIZE H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_SIZE
#ifndef PUT_SCNHDR_SIZE
#define PUT_SCNHDR_SIZE H_PUT_32
#define PUT_SCNHDR_SIZE H_PUT_32
#endif
#endif
#ifndef GET_SCNHDR_SCNPTR
#ifndef GET_SCNHDR_SCNPTR
#define GET_SCNHDR_SCNPTR H_GET_32
#define GET_SCNHDR_SCNPTR H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_SCNPTR
#ifndef PUT_SCNHDR_SCNPTR
#define PUT_SCNHDR_SCNPTR H_PUT_32
#define PUT_SCNHDR_SCNPTR H_PUT_32
#endif
#endif
#ifndef GET_SCNHDR_RELPTR
#ifndef GET_SCNHDR_RELPTR
#define GET_SCNHDR_RELPTR H_GET_32
#define GET_SCNHDR_RELPTR H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_RELPTR
#ifndef PUT_SCNHDR_RELPTR
#define PUT_SCNHDR_RELPTR H_PUT_32
#define PUT_SCNHDR_RELPTR H_PUT_32
#endif
#endif
#ifndef GET_SCNHDR_LNNOPTR
#ifndef GET_SCNHDR_LNNOPTR
#define GET_SCNHDR_LNNOPTR H_GET_32
#define GET_SCNHDR_LNNOPTR H_GET_32
#endif
#endif
#ifndef PUT_SCNHDR_LNNOPTR
#ifndef PUT_SCNHDR_LNNOPTR
#define PUT_SCNHDR_LNNOPTR H_PUT_32
#define PUT_SCNHDR_LNNOPTR H_PUT_32
#endif
#endif
 
 
#ifdef COFF_WITH_pep
#ifdef COFF_WITH_pep
 
 
#define GET_OPTHDR_IMAGE_BASE H_GET_64
#define GET_OPTHDR_IMAGE_BASE H_GET_64
#define PUT_OPTHDR_IMAGE_BASE H_PUT_64
#define PUT_OPTHDR_IMAGE_BASE H_PUT_64
#define GET_OPTHDR_SIZE_OF_STACK_RESERVE H_GET_64
#define GET_OPTHDR_SIZE_OF_STACK_RESERVE H_GET_64
#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE H_PUT_64
#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE H_PUT_64
#define GET_OPTHDR_SIZE_OF_STACK_COMMIT H_GET_64
#define GET_OPTHDR_SIZE_OF_STACK_COMMIT H_GET_64
#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT H_PUT_64
#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT H_PUT_64
#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE H_GET_64
#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE H_GET_64
#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE H_PUT_64
#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE H_PUT_64
#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT H_GET_64
#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT H_GET_64
#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT H_PUT_64
#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT H_PUT_64
#define GET_PDATA_ENTRY bfd_get_64
#define GET_PDATA_ENTRY bfd_get_64
 
 
#define _bfd_XX_bfd_copy_private_bfd_data_common        _bfd_pep_bfd_copy_private_bfd_data_common
#define _bfd_XX_bfd_copy_private_bfd_data_common        _bfd_pep_bfd_copy_private_bfd_data_common
#define _bfd_XX_bfd_copy_private_section_data           _bfd_pep_bfd_copy_private_section_data
#define _bfd_XX_bfd_copy_private_section_data           _bfd_pep_bfd_copy_private_section_data
#define _bfd_XX_get_symbol_info                         _bfd_pep_get_symbol_info
#define _bfd_XX_get_symbol_info                         _bfd_pep_get_symbol_info
#define _bfd_XX_only_swap_filehdr_out                   _bfd_pep_only_swap_filehdr_out
#define _bfd_XX_only_swap_filehdr_out                   _bfd_pep_only_swap_filehdr_out
#define _bfd_XX_print_private_bfd_data_common           _bfd_pep_print_private_bfd_data_common
#define _bfd_XX_print_private_bfd_data_common           _bfd_pep_print_private_bfd_data_common
#define _bfd_XXi_final_link_postscript                  _bfd_pepi_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pepi_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pepi_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pepi_final_link_postscript
#define _bfd_XXi_only_swap_filehdr_out                  _bfd_pepi_only_swap_filehdr_out
#define _bfd_XXi_only_swap_filehdr_out                  _bfd_pepi_only_swap_filehdr_out
#define _bfd_XXi_swap_aouthdr_in                        _bfd_pepi_swap_aouthdr_in
#define _bfd_XXi_swap_aouthdr_in                        _bfd_pepi_swap_aouthdr_in
#define _bfd_XXi_swap_aouthdr_out                       _bfd_pepi_swap_aouthdr_out
#define _bfd_XXi_swap_aouthdr_out                       _bfd_pepi_swap_aouthdr_out
#define _bfd_XXi_swap_aux_in                            _bfd_pepi_swap_aux_in
#define _bfd_XXi_swap_aux_in                            _bfd_pepi_swap_aux_in
#define _bfd_XXi_swap_aux_out                           _bfd_pepi_swap_aux_out
#define _bfd_XXi_swap_aux_out                           _bfd_pepi_swap_aux_out
#define _bfd_XXi_swap_lineno_in                         _bfd_pepi_swap_lineno_in
#define _bfd_XXi_swap_lineno_in                         _bfd_pepi_swap_lineno_in
#define _bfd_XXi_swap_lineno_out                        _bfd_pepi_swap_lineno_out
#define _bfd_XXi_swap_lineno_out                        _bfd_pepi_swap_lineno_out
#define _bfd_XXi_swap_scnhdr_out                        _bfd_pepi_swap_scnhdr_out
#define _bfd_XXi_swap_scnhdr_out                        _bfd_pepi_swap_scnhdr_out
#define _bfd_XXi_swap_sym_in                            _bfd_pepi_swap_sym_in
#define _bfd_XXi_swap_sym_in                            _bfd_pepi_swap_sym_in
#define _bfd_XXi_swap_sym_out                           _bfd_pepi_swap_sym_out
#define _bfd_XXi_swap_sym_out                           _bfd_pepi_swap_sym_out
 
 
#else /* !COFF_WITH_pep */
#else /* !COFF_WITH_pep */
 
 
#define GET_OPTHDR_IMAGE_BASE H_GET_32
#define GET_OPTHDR_IMAGE_BASE H_GET_32
#define PUT_OPTHDR_IMAGE_BASE H_PUT_32
#define PUT_OPTHDR_IMAGE_BASE H_PUT_32
#define GET_OPTHDR_SIZE_OF_STACK_RESERVE H_GET_32
#define GET_OPTHDR_SIZE_OF_STACK_RESERVE H_GET_32
#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE H_PUT_32
#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE H_PUT_32
#define GET_OPTHDR_SIZE_OF_STACK_COMMIT H_GET_32
#define GET_OPTHDR_SIZE_OF_STACK_COMMIT H_GET_32
#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT H_PUT_32
#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT H_PUT_32
#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE H_GET_32
#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE H_GET_32
#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE H_PUT_32
#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE H_PUT_32
#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT H_GET_32
#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT H_GET_32
#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT H_PUT_32
#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT H_PUT_32
#define GET_PDATA_ENTRY bfd_get_32
#define GET_PDATA_ENTRY bfd_get_32
 
 
#define _bfd_XX_bfd_copy_private_bfd_data_common        _bfd_pe_bfd_copy_private_bfd_data_common
#define _bfd_XX_bfd_copy_private_bfd_data_common        _bfd_pe_bfd_copy_private_bfd_data_common
#define _bfd_XX_bfd_copy_private_section_data           _bfd_pe_bfd_copy_private_section_data
#define _bfd_XX_bfd_copy_private_section_data           _bfd_pe_bfd_copy_private_section_data
#define _bfd_XX_get_symbol_info                         _bfd_pe_get_symbol_info
#define _bfd_XX_get_symbol_info                         _bfd_pe_get_symbol_info
#define _bfd_XX_only_swap_filehdr_out                   _bfd_pe_only_swap_filehdr_out
#define _bfd_XX_only_swap_filehdr_out                   _bfd_pe_only_swap_filehdr_out
#define _bfd_XX_print_private_bfd_data_common           _bfd_pe_print_private_bfd_data_common
#define _bfd_XX_print_private_bfd_data_common           _bfd_pe_print_private_bfd_data_common
#define _bfd_XXi_final_link_postscript                  _bfd_pei_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pei_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pei_final_link_postscript
#define _bfd_XXi_final_link_postscript                  _bfd_pei_final_link_postscript
#define _bfd_XXi_only_swap_filehdr_out                  _bfd_pei_only_swap_filehdr_out
#define _bfd_XXi_only_swap_filehdr_out                  _bfd_pei_only_swap_filehdr_out
#define _bfd_XXi_swap_aouthdr_in                        _bfd_pei_swap_aouthdr_in
#define _bfd_XXi_swap_aouthdr_in                        _bfd_pei_swap_aouthdr_in
#define _bfd_XXi_swap_aouthdr_out                       _bfd_pei_swap_aouthdr_out
#define _bfd_XXi_swap_aouthdr_out                       _bfd_pei_swap_aouthdr_out
#define _bfd_XXi_swap_aux_in                            _bfd_pei_swap_aux_in
#define _bfd_XXi_swap_aux_in                            _bfd_pei_swap_aux_in
#define _bfd_XXi_swap_aux_out                           _bfd_pei_swap_aux_out
#define _bfd_XXi_swap_aux_out                           _bfd_pei_swap_aux_out
#define _bfd_XXi_swap_lineno_in                         _bfd_pei_swap_lineno_in
#define _bfd_XXi_swap_lineno_in                         _bfd_pei_swap_lineno_in
#define _bfd_XXi_swap_lineno_out                        _bfd_pei_swap_lineno_out
#define _bfd_XXi_swap_lineno_out                        _bfd_pei_swap_lineno_out
#define _bfd_XXi_swap_scnhdr_out                        _bfd_pei_swap_scnhdr_out
#define _bfd_XXi_swap_scnhdr_out                        _bfd_pei_swap_scnhdr_out
#define _bfd_XXi_swap_sym_in                            _bfd_pei_swap_sym_in
#define _bfd_XXi_swap_sym_in                            _bfd_pei_swap_sym_in
#define _bfd_XXi_swap_sym_out                           _bfd_pei_swap_sym_out
#define _bfd_XXi_swap_sym_out                           _bfd_pei_swap_sym_out
 
 
#endif /* !COFF_WITH_pep */
#endif /* !COFF_WITH_pep */
 
 
/* These functions are architecture dependent, and are in peicode.h:
/* These functions are architecture dependent, and are in peicode.h:
   coff_swap_reloc_in
   coff_swap_reloc_in
   int coff_swap_reloc_out
   int coff_swap_reloc_out
   coff_swap_filehdr_in
   coff_swap_filehdr_in
   coff_swap_scnhdr_in
   coff_swap_scnhdr_in
   pe_mkobject
   pe_mkobject
   pe_mkobject_hook  */
   pe_mkobject_hook  */
 
 
/* The functions described below are common across all PE/PEI
/* The functions described below are common across all PE/PEI
   implementations architecture types, and actually appear in
   implementations architecture types, and actually appear in
   peigen.c.  */
   peigen.c.  */
 
 
void _bfd_XXi_swap_sym_in PARAMS ((bfd*, PTR, PTR));
void _bfd_XXi_swap_sym_in PARAMS ((bfd*, PTR, PTR));
#define coff_swap_sym_in _bfd_XXi_swap_sym_in
#define coff_swap_sym_in _bfd_XXi_swap_sym_in
 
 
unsigned int _bfd_XXi_swap_sym_out PARAMS ((bfd*, PTR, PTR));
unsigned int _bfd_XXi_swap_sym_out PARAMS ((bfd*, PTR, PTR));
#define coff_swap_sym_out _bfd_XXi_swap_sym_out
#define coff_swap_sym_out _bfd_XXi_swap_sym_out
 
 
void _bfd_XXi_swap_aux_in PARAMS ((bfd *, PTR, int, int, int, int, PTR));
void _bfd_XXi_swap_aux_in PARAMS ((bfd *, PTR, int, int, int, int, PTR));
#define coff_swap_aux_in _bfd_XXi_swap_aux_in
#define coff_swap_aux_in _bfd_XXi_swap_aux_in
 
 
unsigned int _bfd_XXi_swap_aux_out \
unsigned int _bfd_XXi_swap_aux_out \
  PARAMS ((bfd *, PTR, int, int, int, int, PTR));
  PARAMS ((bfd *, PTR, int, int, int, int, PTR));
#define coff_swap_aux_out _bfd_XXi_swap_aux_out
#define coff_swap_aux_out _bfd_XXi_swap_aux_out
 
 
void _bfd_XXi_swap_lineno_in PARAMS ((bfd*, PTR, PTR));
void _bfd_XXi_swap_lineno_in PARAMS ((bfd*, PTR, PTR));
#define coff_swap_lineno_in _bfd_XXi_swap_lineno_in
#define coff_swap_lineno_in _bfd_XXi_swap_lineno_in
 
 
unsigned int _bfd_XXi_swap_lineno_out PARAMS ((bfd*, PTR, PTR));
unsigned int _bfd_XXi_swap_lineno_out PARAMS ((bfd*, PTR, PTR));
#define coff_swap_lineno_out _bfd_XXi_swap_lineno_out
#define coff_swap_lineno_out _bfd_XXi_swap_lineno_out
 
 
void _bfd_XXi_swap_aouthdr_in PARAMS ((bfd*, PTR, PTR));
void _bfd_XXi_swap_aouthdr_in PARAMS ((bfd*, PTR, PTR));
#define coff_swap_aouthdr_in _bfd_XXi_swap_aouthdr_in
#define coff_swap_aouthdr_in _bfd_XXi_swap_aouthdr_in
 
 
unsigned int _bfd_XXi_swap_aouthdr_out PARAMS ((bfd *, PTR, PTR));
unsigned int _bfd_XXi_swap_aouthdr_out PARAMS ((bfd *, PTR, PTR));
#define coff_swap_aouthdr_out _bfd_XXi_swap_aouthdr_out
#define coff_swap_aouthdr_out _bfd_XXi_swap_aouthdr_out
 
 
unsigned int _bfd_XXi_swap_scnhdr_out PARAMS ((bfd *, PTR, PTR));
unsigned int _bfd_XXi_swap_scnhdr_out PARAMS ((bfd *, PTR, PTR));
#define coff_swap_scnhdr_out _bfd_XXi_swap_scnhdr_out
#define coff_swap_scnhdr_out _bfd_XXi_swap_scnhdr_out
 
 
boolean _bfd_XX_print_private_bfd_data_common PARAMS ((bfd *, PTR));
boolean _bfd_XX_print_private_bfd_data_common PARAMS ((bfd *, PTR));
 
 
boolean _bfd_XX_bfd_copy_private_bfd_data_common PARAMS ((bfd *, bfd *));
boolean _bfd_XX_bfd_copy_private_bfd_data_common PARAMS ((bfd *, bfd *));
 
 
void _bfd_XX_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
void _bfd_XX_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
 
 
boolean _bfd_XXi_final_link_postscript
boolean _bfd_XXi_final_link_postscript
  PARAMS ((bfd *, struct coff_final_link_info *));
  PARAMS ((bfd *, struct coff_final_link_info *));
 
 
#ifndef coff_final_link_postscript
#ifndef coff_final_link_postscript
#define coff_final_link_postscript _bfd_XXi_final_link_postscript
#define coff_final_link_postscript _bfd_XXi_final_link_postscript
#endif
#endif
/* The following are needed only for ONE of pe or pei, but don't
/* The following are needed only for ONE of pe or pei, but don't
   otherwise vary; peicode.h fixes up ifdefs but we provide the
   otherwise vary; peicode.h fixes up ifdefs but we provide the
   prototype.  */
   prototype.  */
 
 
unsigned int _bfd_XX_only_swap_filehdr_out PARAMS ((bfd*, PTR, PTR));
unsigned int _bfd_XX_only_swap_filehdr_out PARAMS ((bfd*, PTR, PTR));
unsigned int _bfd_XXi_only_swap_filehdr_out PARAMS ((bfd*, PTR, PTR));
unsigned int _bfd_XXi_only_swap_filehdr_out PARAMS ((bfd*, PTR, PTR));
boolean _bfd_XX_bfd_copy_private_section_data
boolean _bfd_XX_bfd_copy_private_section_data
  PARAMS ((bfd *, asection *, bfd *, asection *));
  PARAMS ((bfd *, asection *, bfd *, asection *));
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.