[BusyBox-cvs] CVS update of busybox/modutils (insmod.c)

Erik Andersen andersen at codepoet.org
Thu Aug 19 19:17:31 UTC 2004


    Date: Thursday, August 19, 2004 @ 13:17:31
  Author: andersen
    Path: /var/cvs/busybox/modutils

Modified: insmod.c (1.122 -> 1.123)

Patch from Rodney Radford adding x86_64 support.


Index: busybox/modutils/insmod.c
diff -u busybox/modutils/insmod.c:1.122 busybox/modutils/insmod.c:1.123
--- busybox/modutils/insmod.c:1.122	Tue Jul 20 09:43:57 2004
+++ busybox/modutils/insmod.c	Thu Aug 19 13:17:30 2004
@@ -2,12 +2,15 @@
 /*
  * Mini insmod implementation for busybox
  *
- * This version of insmod supports x86, ARM, SH3/4/5, powerpc, m68k,
+ * This version of insmod supports x86, x86_64, ARM, SH3/4/5, powerpc, m68k,
  * MIPS, v850e, and H8/300.
  *
  * Copyright (C) 1999-2004 by Erik Andersen <andersen at codepoet.org>
  * and Ron Alder <alder at lineo.com>
  *
+ * Rodney Radford <rradford at mindspring.com> 17-Aug-2004.
+ *   Added x86_64 support.
+ *
  * Miles Bader <miles at gnu.org> added NEC V850E support.
  *
  * Modified by Bryan Rittmeyer <bryan at ixiacom.com> to support SH4
@@ -148,6 +151,13 @@
 #define ELFCLASSM	ELFCLASS32
 #endif
 
+#if defined(__x86_64__)
+#define MATCH_MACHINE(x) (x == EM_X86_64)
+#define SHT_RELM	SHT_REL
+#define Elf64_RelM	Elf64_Rel
+#define ELFCLASSM	ELFCLASS64
+#endif
+
 #if defined(__mc68000__)
 #define CONFIG_USE_GOT_ENTRIES
 #define CONFIG_GOT_ENTRY_SIZE 4



More information about the busybox-cvs mailing list