OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [libpei.h] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* 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, 2002, 2003, 2005,
   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
   2006, 2007, 2008   Free Software Foundation, Inc.
   2006, 2007, 2008, 2009  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
Line 299... Line 299...
#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 */
 
 
/* Returns true if the target is a PE executable target.  */
 
#define bfd_target_pei_p(xvec)                                  \
 
  (CONST_STRNEQ ((xvec)->name, "pei-"))
 
 
 
/* Return the arch string of a PE executable target.  */
 
#define bfd_target_pei_arch(xvec)                               \
 
  ((xvec)->name + sizeof ("pei-") - 1)
 
 
 
/* Returns true if the target is an EFI application target.  */
 
#define bfd_target_efi_app_p(xvec)                              \
 
   (CONST_STRNEQ ((xvec)->name, "efi-app-"))
 
 
 
/* Return the arch string of an EFI application target.  */
 
#define bfd_target_efi_app_arch(xvec)                           \
 
  ((xvec)->name + sizeof ("efi-app-") - 1)
 
 
 
/* Returns true if the target is an EFI Boot Service driver target.  */
 
#define bfd_target_efi_bsdrv_p(xvec)                            \
 
   (CONST_STRNEQ ((xvec)->name, "efi-bsdrv-"))
 
 
 
/* Return the arch string of an EFI Boot Service driver target.  */
 
#define bfd_target_efi_bsdrv_arch(xvec)                         \
 
  ((xvec)->name + sizeof ("efi-bsdrv-") - 1)
 
 
 
/* Returns true if the target is an EFI runtime driver target.  */
 
#define bfd_target_efi_rtdrv_p(xvec)                            \
 
   (CONST_STRNEQ ((xvec)->name, "efi-rtdrv-"))
 
 
 
/* Return the arch string of an EFI runtime driver target.  */
 
#define bfd_target_efi_rtdrv_arch(xvec)                         \
 
  ((xvec)->name + sizeof ("efi-rtdrv-") - 1)
 
 
 
/* Macro: Returns true if the bfd is a PE executable as opposed to a
 
   PE object file.  */
 
#define bfd_pe_executable_p(abfd)                       \
 
  (   bfd_target_pei_p ((abfd)->xvec)                   \
 
   || bfd_target_efi_app_p ((abfd)->xvec)               \
 
   || bfd_target_efi_bsdrv_p ((abfd)->xvec)             \
 
   || bfd_target_efi_rtdrv_p ((abfd)->xvec))
 
 
 
/* 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
Line 387... Line 347...
 
 
unsigned    _bfd_XX_only_swap_filehdr_out  (bfd *, void *, void *);
unsigned    _bfd_XX_only_swap_filehdr_out  (bfd *, void *, void *);
unsigned    _bfd_XXi_only_swap_filehdr_out (bfd *, void *, void *);
unsigned    _bfd_XXi_only_swap_filehdr_out (bfd *, void *, void *);
bfd_boolean _bfd_XX_bfd_copy_private_section_data (bfd *, asection *, bfd *, asection *);
bfd_boolean _bfd_XX_bfd_copy_private_section_data (bfd *, asection *, bfd *, asection *);
 
 
 
bfd_boolean _bfd_pe_print_ce_compressed_pdata (bfd *, void *);
 
bfd_boolean _bfd_pe64_print_ce_compressed_pdata (bfd *, void *);
 
bfd_boolean _bfd_pex64_print_ce_compressed_pdata (bfd *, void *);
 
bfd_boolean _bfd_pep_print_ce_compressed_pdata (bfd *, void *);
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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