xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/cpu-wasm32.c (revision c42dbd0ed2e61fe6eda8590caa852ccf34719964)
1e6c7e151Schristos /* BFD support for the WebAssembly target
2*c42dbd0eSchristos    Copyright (C) 2017-2022 Free Software Foundation, Inc.
3e6c7e151Schristos 
4e6c7e151Schristos    This file is part of BFD, the Binary File Descriptor library.
5e6c7e151Schristos 
6e6c7e151Schristos    This program is free software; you can redistribute it and/or modify
7e6c7e151Schristos    it under the terms of the GNU General Public License as published by
8e6c7e151Schristos    the Free Software Foundation; either version 3 of the License, or
9e6c7e151Schristos    (at your option) any later version.
10e6c7e151Schristos 
11e6c7e151Schristos    This program is distributed in the hope that it will be useful,
12e6c7e151Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13e6c7e151Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14e6c7e151Schristos    GNU General Public License for more details.
15e6c7e151Schristos 
16e6c7e151Schristos    You should have received a copy of the GNU General Public License
17e6c7e151Schristos    along with this program; if not, write to the Free Software
18e6c7e151Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19e6c7e151Schristos    MA 02110-1301, USA.  */
20e6c7e151Schristos 
21e6c7e151Schristos #include "sysdep.h"
22e6c7e151Schristos #include "bfd.h"
23e6c7e151Schristos #include "libbfd.h"
24e6c7e151Schristos #include "libiberty.h"
25e6c7e151Schristos 
26e6c7e151Schristos #define N(number, print, default, next)  \
27e6c7e151Schristos  { 32, 32, 8, bfd_arch_wasm32, number, "wasm32", "wasm32", 4, default, bfd_default_compatible, \
28867d70fcSchristos    bfd_default_scan, bfd_arch_default_fill, next, 0 }
29e6c7e151Schristos 
30e6c7e151Schristos static const bfd_arch_info_type arch_info_struct[] =
31e6c7e151Schristos {
32*c42dbd0eSchristos   N (bfd_mach_wasm32, "wasm32", true, NULL)
33e6c7e151Schristos };
34e6c7e151Schristos 
35e6c7e151Schristos const bfd_arch_info_type bfd_wasm32_arch =
36*c42dbd0eSchristos   N (bfd_mach_wasm32, "wasm32", true, & arch_info_struct[0]);
37