X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2Fcf-i386lynx.c;h=6e94607aaaefaabff4b6381f56f89216a4eb40de;hb=45a54ee57764e34fe2fe8b7655fabef38936a696;hp=3c9c8d060f2f53d5c86b2255a2eb1f419c390ec9;hpb=6812b6077e4a09eab08458428f09c28ec58fc514;p=external%2Fbinutils.git diff --git a/bfd/cf-i386lynx.c b/bfd/cf-i386lynx.c index 3c9c8d0..6e94607 100644 --- a/bfd/cf-i386lynx.c +++ b/bfd/cf-i386lynx.c @@ -1,98 +1,34 @@ /* BFD back-end for Intel 386 COFF LynxOS files. - Copyright 1993 Free Software Foundation, Inc. + Copyright (C) 1993-2016 Free Software Foundation, Inc. Written by Cygnus Support. -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 -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + 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 + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ -#define TARGET_SYM i386lynx_coff_vec +#include "sysdep.h" +#include "bfd.h" + +#define TARGET_SYM i386_coff_lynx_vec #define TARGET_NAME "coff-i386-lynx" #define LYNXOS #define COFF_LONG_FILENAMES -#include "coff-i386.c" - -static bfd_target * -i386_lynxos_coff_object_p(a) - bfd *a; -{ - return coff_object_p(a); -} - -#if 0 - -#undef TARGET_SYM -#define TARGET_SYM i386lynx_sysv_coff_vec -#undef TARGET_NAME -#define TARGET_NAME "coff-i386-lynx-sysv" - -/* Another almost-copy of the vector in coff-i386.c. */ - -bfd_target -#ifdef TARGET_SYM - TARGET_SYM = -#else - i386coff_vec = -#endif -{ -#ifdef TARGET_NAME - TARGET_NAME, -#else - "coff-i386", /* name */ -#endif - bfd_target_coff_flavour, - false, /* data byte order is little */ - false, /* header byte order is little */ +#define bfd_pe_print_pdata NULL - (HAS_RELOC | EXEC_P | /* object flags */ - HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT), - - (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ - 0, /* leading underscore */ - '/', /* ar_pad_char */ - 15, /* ar_max_namelen */ - - 2, /* minimum alignment power */ - bfd_getl64, bfd_getl_signed_64, bfd_putl64, - bfd_getl32, bfd_getl_signed_32, bfd_putl32, - bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */ - bfd_getl64, bfd_getl_signed_64, bfd_putl64, - bfd_getl32, bfd_getl_signed_32, bfd_putl32, - bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* hdrs */ - -/* Note that we allow an object file to be treated as a core file as well. */ - {_bfd_dummy_target, i3coff_object_p, /* bfd_check_format */ - bfd_generic_archive_p, i3coff_object_p}, - {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */ - bfd_false}, - {bfd_false, coff_write_object_contents, /* bfd_write_contents */ - _bfd_write_archive_contents, bfd_false}, - - BFD_JUMP_TABLE_GENERIC (coff), - BFD_JUMP_TABLE_COPY (coff), - BFD_JUMP_TABLE_CORE (_bfd_nocore), - BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), - BFD_JUMP_TABLE_SYMBOLS (coff), - BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), - BFD_JUMP_TABLE_LINK (coff), - - COFF_SWAP_TABLE, -}; -#endif +#include "coff-i386.c"