RISC-V: Don't report warnings when linking different privileged spec objects.
[binutils-gdb.git] / gas / emul.h
blob355a7001211c64b329b6cfb8c545d612d4192385
1 /* emul.h. File format emulation routines
2 Copyright (C) 1995-2024 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
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
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
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.
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
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19 02110-1301, USA. */
21 #ifndef EMUL_DEFS
22 #define EMUL_DEFS
24 struct emulation
26 const char * name;
27 void (* init) (void);
28 unsigned local_labels_fb : 1;
29 unsigned local_labels_dollar : 1;
30 unsigned leading_underscore : 2;
31 unsigned default_endian : 2;
32 const char * fake_label_name;
33 const struct format_ops * format;
36 COMMON struct emulation * this_emulation;
38 extern struct emulation mipsbelf, mipslelf, mipself;
39 extern struct emulation crisaout, criself;
41 extern void common_emul_init (void);
43 #endif