Fix: nm: SEGV at bfd/elf.c:2267 in _bfd_elf_get_dynamic_symbols
[binutils-gdb.git] / gas / config / tc-moxie.h
blobf579b61beb558beeec0f7617de1a59118c0fc8c6
1 /* tc-moxie.h -- Header file for tc-moxie.c.
3 Copyright (C) 2009-2023 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with GAS; see the file COPYING. If not, write to the Free Software
19 Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
21 #define TC_MOXIE 1
22 #ifndef TARGET_BYTES_BIG_ENDIAN
23 #define TARGET_BYTES_BIG_ENDIAN 1
24 #endif
25 #define WORKING_DOT_WORD
27 /* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
28 #define TARGET_FORMAT (target_big_endian ? "elf32-bigmoxie" : "elf32-littlemoxie")
30 #define TARGET_ARCH bfd_arch_moxie
32 #define md_undefined_symbol(NAME) 0
34 /* These macros must be defined, but is will be a fatal assembler
35 error if we ever hit them. */
36 #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")), 0)
37 #define md_convert_frag(B, S, F) as_fatal (_("convert_frag\n"))
39 #define md_section_align(SEGMENT, SIZE) (SIZE)