From 8fb740dd3032543b833b141011aa2005c035d024 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Mon, 27 Mar 2017 11:39:50 +0100 Subject: 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. --- include/ChangeLog | 4 ++++ include/elf/wasm32.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 include/elf/wasm32.h (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 48f2afc..daaad17 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2017-03-27 Pip Cet + + * elf/wasm32.h: New file to support wasm32 architecture. + 2017-03-27 Rinat Zelig * opcode/arc.h (insn_class_t): Add ULTRAIP and MISC class. diff --git a/include/elf/wasm32.h b/include/elf/wasm32.h new file mode 100644 index 0000000..38e6c2e --- /dev/null +++ b/include/elf/wasm32.h @@ -0,0 +1,28 @@ +/* ELF support for BFD for the WebAssembly target + Copyright (C) 2017 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _ELF_WASM32_H +#define _ELF_WASM32_H + +#include "elf/reloc-macros.h" + +/* Relocation types. */ + +START_RELOC_NUMBERS (elf_wasm32_reloc_type) +END_RELOC_NUMBERS (R_WASM32_max = 1) + +#endif /* _ELF_WASM32_H */ -- cgit v1.1