diff options
author | Pip Cet <pipcet@gmail.com> | 2017-03-27 11:39:50 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-03-27 11:39:50 +0100 |
commit | 8fb740dd3032543b833b141011aa2005c035d024 (patch) | |
tree | 34de95e73bd28e877d1a1259d19fbe088f0329b2 /bfd/archures.c | |
parent | c0c31e91adc6aabe7c96f02dd51a0f6200a982da (diff) | |
download | fsf-binutils-gdb-8fb740dd3032543b833b141011aa2005c035d024.zip fsf-binutils-gdb-8fb740dd3032543b833b141011aa2005c035d024.tar.gz fsf-binutils-gdb-8fb740dd3032543b833b141011aa2005c035d024.tar.bz2 |
Add minimal support for WebAssembly backend to the BFD library.
include * elf/wasm32.h: New file to support wasm32 architecture.
bfd * cpu-wasm32.c: New file to support wasm32 architecture.
* elf32-wasm32.c: New file to support wasm32 architecture.
* Makefile.am: Add wasm32 architecture.
* archures.c: Likewise.
* config.bfd: Likewise.
* configure.ac: Likewise.
* targets.c: Likewise.
Diffstat (limited to 'bfd/archures.c')
-rw-r--r-- | bfd/archures.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/archures.c b/bfd/archures.c index c909db0..c6e7152 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -528,6 +528,8 @@ DESCRIPTION .#define bfd_mach_nios2r2 2 . bfd_arch_visium, {* Visium *} .#define bfd_mach_visium 1 +. bfd_arch_wasm32, {* WebAssembly *} +.#define bfd_mach_wasm32 1 . bfd_arch_pru, {* PRU *} .#define bfd_mach_pru 0 . bfd_arch_last @@ -654,6 +656,7 @@ extern const bfd_arch_info_type bfd_v850_arch; extern const bfd_arch_info_type bfd_v850_rh850_arch; extern const bfd_arch_info_type bfd_vax_arch; extern const bfd_arch_info_type bfd_visium_arch; +extern const bfd_arch_info_type bfd_wasm32_arch; extern const bfd_arch_info_type bfd_w65_arch; extern const bfd_arch_info_type bfd_we32k_arch; extern const bfd_arch_info_type bfd_xstormy16_arch; @@ -746,6 +749,7 @@ static const bfd_arch_info_type * const bfd_archures_list[] = &bfd_vax_arch, &bfd_visium_arch, &bfd_w65_arch, + &bfd_wasm32_arch, &bfd_we32k_arch, &bfd_xstormy16_arch, &bfd_xtensa_arch, |