From 31d44a623579fbca300f20bc751c7278c4375980 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Feb 2001 17:21:43 +0000 Subject: use modutils for non Intel arch's --- mdk-stage1/insmod-modutils/include/elf_mips.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mdk-stage1/insmod-modutils/include/elf_mips.h (limited to 'mdk-stage1/insmod-modutils/include/elf_mips.h') diff --git a/mdk-stage1/insmod-modutils/include/elf_mips.h b/mdk-stage1/insmod-modutils/include/elf_mips.h new file mode 100644 index 000000000..8a0430216 --- /dev/null +++ b/mdk-stage1/insmod-modutils/include/elf_mips.h @@ -0,0 +1,24 @@ +/* Machine-specific elf macros for MIPS. */ +#ident "$Id$" + +#define ELFCLASSM ELFCLASS32 +#ifdef __MIPSEB__ +#define ELFDATAM ELFDATA2MSB +#endif +#ifdef __MIPSEL__ +#define ELFDATAM ELFDATA2LSB +#endif + +/* Account for ELF spec changes. */ +#ifndef EM_MIPS_RS3_LE +#ifdef EM_MIPS_RS4_BE +#define EM_MIPS_RS3_LE EM_MIPS_RS4_BE +#else +#define EM_MIPS_RS3_LE 10 +#endif +#endif /* !EM_MIPS_RS3_LE */ + +#define MATCH_MACHINE(x) (x == EM_MIPS || x == EM_MIPS_RS3_LE) + +#define SHT_RELM SHT_REL +#define Elf32_RelM Elf32_Rel -- cgit v1.2.1