178828Sobrien/* emul.h. File format emulation routines 2218822Sdim Copyright 1995, 2003 Free Software Foundation, Inc. 378828Sobrien 478828Sobrien This file is part of GAS, the GNU Assembler. 578828Sobrien 678828Sobrien GAS is free software; you can redistribute it and/or modify 778828Sobrien it under the terms of the GNU General Public License as published by 878828Sobrien the Free Software Foundation; either version 2, or (at your option) 978828Sobrien any later version. 1078828Sobrien 1178828Sobrien GAS is distributed in the hope that it will be useful, 1278828Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1378828Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1478828Sobrien GNU General Public License for more details. 1578828Sobrien 1678828Sobrien You should have received a copy of the GNU General Public License 1778828Sobrien along with GAS; see the file COPYING. If not, write to the Free 18218822Sdim Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 19218822Sdim 02110-1301, USA. */ 2078828Sobrien 2133965Sjdp#ifndef EMUL_DEFS 2233965Sjdp#define EMUL_DEFS 2333965Sjdp 2489857Sobrienstruct emulation 2589857Sobrien { 26130561Sobrien void (* match) (const char *); 2789857Sobrien const char * name; 28130561Sobrien void (* init) (void); 29130561Sobrien const char *(* bfd_name) (void); 3089857Sobrien unsigned local_labels_fb : 1; 3189857Sobrien unsigned local_labels_dollar : 1; 3289857Sobrien unsigned leading_underscore : 2; 3389857Sobrien unsigned strip_underscore : 1; 3489857Sobrien unsigned default_endian : 2; 3589857Sobrien const char * fake_label_name; 3689857Sobrien const struct format_ops * format; 3789857Sobrien }; 3833965Sjdp 3989857SobrienCOMMON struct emulation * this_emulation; 4033965Sjdp 41130561Sobrienextern const char * default_emul_bfd_name (void); 42130561Sobrienextern void common_emul_init (void); 4333965Sjdp 4433965Sjdp#endif 45