diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-07-22 10:18:47 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 13:47:39 +0800 |
commit | 0c4eed48fd7b9983ecf4a94c49cecb59de6c5556 (patch) | |
tree | 486bb1e920879a2d041f79845e3c1d3b55d1e0f0 /libbsd | |
parent | 400bce45a8532b2377c5692da80666196ce09c64 (diff) |
Moxie Support
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Diffstat (limited to 'libbsd')
-rw-r--r-- | libbsd/include/arch/moxie/machine/ansi.h | 0 | ||||
-rw-r--r-- | libbsd/include/arch/moxie/machine/asm.h | 2 | ||||
-rw-r--r-- | libbsd/include/arch/moxie/machine/cdefs.h | 0 | ||||
-rw-r--r-- | libbsd/include/arch/moxie/machine/elf_machdep.h | 15 | ||||
-rw-r--r-- | libbsd/include/arch/moxie/machine/int_types.h | 0 | ||||
-rw-r--r-- | libbsd/include/sys/exec_elf.h | 2 |
6 files changed, 19 insertions, 0 deletions
diff --git a/libbsd/include/arch/moxie/machine/ansi.h b/libbsd/include/arch/moxie/machine/ansi.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libbsd/include/arch/moxie/machine/ansi.h diff --git a/libbsd/include/arch/moxie/machine/asm.h b/libbsd/include/arch/moxie/machine/asm.h new file mode 100644 index 0000000..b3a7a95 --- /dev/null +++ b/libbsd/include/arch/moxie/machine/asm.h @@ -0,0 +1,2 @@ + +#define __CONCAT(x,y) x ## y diff --git a/libbsd/include/arch/moxie/machine/cdefs.h b/libbsd/include/arch/moxie/machine/cdefs.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libbsd/include/arch/moxie/machine/cdefs.h diff --git a/libbsd/include/arch/moxie/machine/elf_machdep.h b/libbsd/include/arch/moxie/machine/elf_machdep.h new file mode 100644 index 0000000..3f0df23 --- /dev/null +++ b/libbsd/include/arch/moxie/machine/elf_machdep.h @@ -0,0 +1,15 @@ +#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB + +#define ELF32_MACHDEP_ID_CASES \ + case EM_MOXIE: \ + break; + +#define ELF32_MACHDEP_ID EM_MOXIE + +#define ARCH_ELFSIZE 32 + +#define R_MOXIE_NONE 0 +#define R_MOXIE_32 1 +#define R_MOXIE_PCREL10 2 + +#define R_TYPE(name) __CONCAT(R_MOXIE_,name) diff --git a/libbsd/include/arch/moxie/machine/int_types.h b/libbsd/include/arch/moxie/machine/int_types.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libbsd/include/arch/moxie/machine/int_types.h diff --git a/libbsd/include/sys/exec_elf.h b/libbsd/include/sys/exec_elf.h index 19ca7f5..08da7e8 100644 --- a/libbsd/include/sys/exec_elf.h +++ b/libbsd/include/sys/exec_elf.h @@ -330,6 +330,8 @@ typedef struct { #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze 32-bit RISC soft processor core */ +#define EM_MOXIE 0xFEED + /* Unofficial machine types follow */ #define EM_AVR32 6317 /* used by NetBSD/avr32 */ #define EM_ALPHA_EXP 36902 /* used by NetBSD/alpha; obsolete */ |