home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdb-4.12.tar.gz / gdb-4.12.tar / gdb-4.12 / bfd / cf-i386lynx.c < prev    next >
C/C++ Source or Header  |  1994-02-03  |  3KB  |  91 lines

  1. /* BFD back-end for Intel 386 COFF LynxOS files.
  2.    Copyright 1993 Free Software Foundation, Inc.
  3.    Written by Cygnus Support.
  4.  
  5. This file is part of BFD, the Binary File Descriptor library.
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #define TARGET_SYM    i386lynx_coff_vec
  22. #define TARGET_NAME    "coff-i386-lynx"
  23.  
  24. #define LYNXOS
  25.  
  26. #define COFF_LONG_FILENAMES
  27.  
  28. #include "coff-i386.c"
  29.  
  30. static bfd_target *
  31. i386_lynxos_coff_object_p(a)
  32.      bfd *a;
  33. {
  34.   return coff_object_p(a);
  35. }
  36.  
  37. #if 0
  38.  
  39. #undef TARGET_SYM
  40. #define TARGET_SYM    i386lynx_sysv_coff_vec
  41. #undef TARGET_NAME
  42. #define TARGET_NAME    "coff-i386-lynx-sysv"
  43.  
  44. /* Another almost-copy of the vector in coff-i386.c. */
  45.  
  46. bfd_target
  47. #ifdef TARGET_SYM
  48.   TARGET_SYM =
  49. #else
  50.   i386coff_vec =
  51. #endif
  52. {
  53. #ifdef TARGET_NAME
  54.   TARGET_NAME,
  55. #else
  56.   "coff-i386",            /* name */
  57. #endif
  58.   bfd_target_coff_flavour,
  59.   false,            /* data byte order is little */
  60.   false,            /* header byte order is little */
  61.  
  62.   (HAS_RELOC | EXEC_P |        /* object flags */
  63.    HAS_LINENO | HAS_DEBUG |
  64.    HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT),
  65.  
  66.   (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
  67.   0,                /* leading underscore */
  68.   '/',                /* ar_pad_char */
  69.   15,                /* ar_max_namelen */
  70.  
  71.   2,                /* minimum alignment power */
  72.   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
  73.      bfd_getl32, bfd_getl_signed_32, bfd_putl32,
  74.      bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */
  75.   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
  76.      bfd_getl32, bfd_getl_signed_32, bfd_putl32,
  77.      bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* hdrs */
  78.  
  79. /* Note that we allow an object file to be treated as a core file as well. */
  80.     {_bfd_dummy_target, i3coff_object_p, /* bfd_check_format */
  81.        bfd_generic_archive_p, i3coff_object_p},
  82.     {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */
  83.        bfd_false},
  84.     {bfd_false, coff_write_object_contents, /* bfd_write_contents */
  85.        _bfd_write_archive_contents, bfd_false},
  86.  
  87.   JUMP_TABLE(coff),
  88.   COFF_SWAP_TABLE,
  89. };
  90. #endif
  91.