Back to index

cell-binutils  2.17cvs20070401
emul.h
Go to the documentation of this file.
00001 /* emul.h.  File format emulation routines
00002    Copyright 1995, 2003 Free Software Foundation, Inc.
00003 
00004    This file is part of GAS, the GNU Assembler.
00005 
00006    GAS is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2, or (at your option)
00009    any later version.
00010 
00011    GAS is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with GAS; see the file COPYING.  If not, write to the Free
00018    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00019    02110-1301, USA.  */
00020 
00021 #ifndef EMUL_DEFS
00022 #define EMUL_DEFS
00023 
00024 struct emulation
00025   {
00026     void (*                   match) (const char *);
00027     const char *              name;
00028     void (*                   init) (void);
00029     const char *(*            bfd_name) (void);
00030     unsigned                  local_labels_fb : 1;
00031     unsigned                  local_labels_dollar : 1;
00032     unsigned                  leading_underscore : 2;
00033     unsigned                  strip_underscore : 1;
00034     unsigned                  default_endian : 2;
00035     const char *              fake_label_name;
00036     const struct format_ops * format;
00037   };
00038 
00039 COMMON struct emulation * this_emulation;
00040 
00041 extern const char * default_emul_bfd_name (void);
00042 extern void common_emul_init (void);
00043 
00044 #endif