From 5fb00ee32fb218f367dcea537a87a5cf2a28e119 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 23 Jun 2003 12:59:27 +0000 Subject: [PATCH] Basic ELF definitions for ns32k. No relocations yet. --- sys/arch/pc532/include/Makefile | 4 ++-- sys/arch/pc532/include/elf_machdep.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sys/arch/pc532/include/elf_machdep.h diff --git a/sys/arch/pc532/include/Makefile b/sys/arch/pc532/include/Makefile index 73806eb374ce..0a3ecd918734 100644 --- a/sys/arch/pc532/include/Makefile +++ b/sys/arch/pc532/include/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2003/01/21 20:50:43 kleink Exp $ +# $NetBSD: Makefile,v 1.18 2003/06/23 12:59:27 thorpej Exp $ INCSDIR= /usr/include/pc532 @@ -6,7 +6,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \ bswap.h byte_swap.h \ cdefs.h cpu.h cpufunc.h \ db_machdep.h disklabel.h \ - endian.h endian_machdep.h \ + elf_machdep.h endian.h endian_machdep.h \ float.h fpu.h frame.h \ icu.h ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ diff --git a/sys/arch/pc532/include/elf_machdep.h b/sys/arch/pc532/include/elf_machdep.h new file mode 100644 index 000000000000..53c28446e1f8 --- /dev/null +++ b/sys/arch/pc532/include/elf_machdep.h @@ -0,0 +1,16 @@ +/* $NetBSD: elf_machdep.h,v 1.1 2003/06/23 12:59:27 thorpej Exp $ */ + +#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB +#define ELF32_MACHDEP_ID_CASES \ + case EM_NS32K: \ + break; + +#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */ +#define ELF64_MACHDEP_ID_CASES \ + /* no 64-bit ELF machine types supported */ + +#define ELF32_MACHDEP_ID EM_NS32K + +#define ARCH_ELFSIZE 32 /* MD native binary size */ + +/* XXX relocations */