Module Name:    src
Committed By:   matt
Date:           Thu Aug 20 07:48:43 UTC 2009

Modified Files:
        src/sys/arch/mips/include [matt-nb5-mips64]: elf_machdep.h

Log Message:
On _LP64 default to ELFSIZE=64
Add a ELF64 default case for EM_MIPS


To generate a diff of this commit:
cvs rdiff -u -r1.10.96.1 -r1.10.96.2 src/sys/arch/mips/include/elf_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/elf_machdep.h
diff -u src/sys/arch/mips/include/elf_machdep.h:1.10.96.1 src/sys/arch/mips/include/elf_machdep.h:1.10.96.2
--- src/sys/arch/mips/include/elf_machdep.h:1.10.96.1	Sun Aug 16 03:33:57 2009
+++ src/sys/arch/mips/include/elf_machdep.h	Thu Aug 20 07:48:43 2009
@@ -1,17 +1,22 @@
-/*	$NetBSD: elf_machdep.h,v 1.10.96.1 2009/08/16 03:33:57 matt Exp $	*/
+/*	$NetBSD: elf_machdep.h,v 1.10.96.2 2009/08/20 07:48:43 matt Exp $	*/
 
 #define	ELF32_MACHDEP_ID_CASES						\
 		case EM_MIPS:						\
 			break;
 
 #define	ELF64_MACHDEP_ID_CASES						\
-		/* no 64-bit ELF machine types supported */
+		case EM_MIPS:						\
+			break;
 
 
 #define	ELF32_MACHDEP_ID	EM_MIPS
 #define	ELF64_MACHDEP_ID	EM_MIPS
 
+#ifdef _LP64
+#define ARCH_ELFSIZE		64	/* MD native binary size */
+#else
 #define ARCH_ELFSIZE		32	/* MD native binary size */
+#endif
 
 /* mips relocs.  */
 

Reply via email to