Commit | Line | Data |
---|---|---|
f7e42eb4 | 1 | /* emul.h. File format emulation routines |
b90efa5b | 2 | Copyright (C) 1995-2015 Free Software Foundation, Inc. |
f7e42eb4 NC |
3 | |
4 | This file is part of GAS, the GNU Assembler. | |
5 | ||
6 | GAS is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
ec2655a6 | 8 | the Free Software Foundation; either version 3, or (at your option) |
f7e42eb4 NC |
9 | any later version. |
10 | ||
11 | GAS is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GAS; see the file COPYING. If not, write to the Free | |
4b4da160 NC |
18 | Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA |
19 | 02110-1301, USA. */ | |
f7e42eb4 | 20 | |
252b5132 RH |
21 | #ifndef EMUL_DEFS |
22 | #define EMUL_DEFS | |
23 | ||
f7e42eb4 NC |
24 | struct emulation |
25 | { | |
dd625418 | 26 | void (* match) (const char *); |
f7e42eb4 | 27 | const char * name; |
dd625418 KH |
28 | void (* init) (void); |
29 | const char *(* bfd_name) (void); | |
f7e42eb4 NC |
30 | unsigned local_labels_fb : 1; |
31 | unsigned local_labels_dollar : 1; | |
32 | unsigned leading_underscore : 2; | |
33 | unsigned strip_underscore : 1; | |
34 | unsigned default_endian : 2; | |
35 | const char * fake_label_name; | |
36 | const struct format_ops * format; | |
37 | }; | |
38 | ||
39 | COMMON struct emulation * this_emulation; | |
40 | ||
dd625418 KH |
41 | extern const char * default_emul_bfd_name (void); |
42 | extern void common_emul_init (void); | |
252b5132 RH |
43 | |
44 | #endif |