Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ELFSIZE



sgimips64 failed in lib/librump because ELFSIZE is not defined.  This made
it build.  Not sure this is correct, for build testers.

Masao

Index: sys/arch/mips/include/elf_machdep.h
===================================================================
RCS file: /cvsroot/src/sys/arch/mips/include/elf_machdep.h,v
retrieving revision 1.13
diff -u -r1.13 elf_machdep.h
--- sys/arch/mips/include/elf_machdep.h 14 Dec 2009 03:20:27 -0000      1.13
+++ sys/arch/mips/include/elf_machdep.h 14 Dec 2009 16:14:01 -0000
@@ -3,6 +3,12 @@
 #ifndef _MIPS_ELF_MACHDEP_H_
 #define  _MIPS_ELF_MACHDEP_H_
 
+#ifdef _LP64
+#define ARCH_ELFSIZE           64      /* MD native binary size */
+#else
+#define ARCH_ELFSIZE           32      /* MD native binary size */
+#endif
+
 #if defined(ELFSIZE)
 #if ELFSIZE == 32
 #define        ELF32_MACHDEP_ID_CASES                                          
\
@@ -22,13 +28,9 @@
 
 #define        ELF64_MACHDEP_ID        EM_MIPS
 #endif /* ELFSIZE == 64 */
-#endif /* defined(ELFSIZE) */
-
-#ifdef _LP64
-#define ARCH_ELFSIZE           64      /* MD native binary size */
-#else
-#define ARCH_ELFSIZE           32      /* MD native binary size */
-#endif
+#else /* !defined(ELFSIZE) */
+#define        ELFSIZE ARCH_ELFSIZE
+#endif /* !defined(ELFSIZE) */
 
 /* mips relocs.  */
 

-- 
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635


Home | Main Index | Thread Index | Old Index