2003-01-15 17:48:09 -05:00
|
|
|
$OpenBSD: patch-include_private_gcconfig_h,v 1.4 2003/01/15 22:48:09 marc Exp $
|
|
|
|
--- include/private/gcconfig.h.orig Tue Aug 6 11:49:22 2002
|
|
|
|
+++ include/private/gcconfig.h Thu Dec 5 21:33:05 2002
|
2002-10-26 09:25:26 -04:00
|
|
|
@@ -51,6 +51,10 @@
|
|
|
|
# define FREEBSD
|
2002-08-27 11:41:30 -04:00
|
|
|
# endif
|
|
|
|
|
|
|
|
+# if defined(__OpenBSD__)
|
|
|
|
+# define OPENBSD
|
|
|
|
+# endif
|
|
|
|
+
|
|
|
|
/* Determine the machine type: */
|
2002-10-26 09:25:26 -04:00
|
|
|
# if defined(__XSCALE__)
|
2002-09-12 02:47:16 -04:00
|
|
|
# define ARM32
|
2002-10-26 09:25:26 -04:00
|
|
|
@@ -270,6 +274,11 @@
|
|
|
|
# define POWERPC
|
2002-09-12 02:47:16 -04:00
|
|
|
# define mach_type_known
|
|
|
|
# endif
|
2002-10-26 09:25:26 -04:00
|
|
|
+# if defined(__OpenBSD__) && (defined(__powerpc__))
|
|
|
|
+# define POWERPC
|
|
|
|
+# define OPENBSD
|
|
|
|
+# define mach_type_known
|
|
|
|
+# endif
|
|
|
|
# if defined(__APPLE__) && defined(__MACH__) && defined(__i386__)
|
|
|
|
# define MACOSX
|
|
|
|
# define I386
|
|
|
|
@@ -726,6 +735,14 @@
|
2002-08-27 11:41:30 -04:00
|
|
|
# define DATASTART GC_data_start
|
|
|
|
# define DYNAMIC_LOADING
|
|
|
|
# endif
|
|
|
|
+# ifdef OPENBSD
|
|
|
|
+# define ALIGNMENT 4
|
|
|
|
+# define OS_TYPE "OPENBSD"
|
|
|
|
+# define HEURISTIC2
|
|
|
|
+ extern char etext;
|
|
|
|
+# define DATASTART GC_data_start
|
|
|
|
+# define DYNAMIC_LOADING
|
|
|
|
+# endif
|
|
|
|
# ifdef NOSYS
|
|
|
|
# define ALIGNMENT 4
|
|
|
|
# define OS_TYPE "NOSYS"
|
2003-01-15 17:48:09 -05:00
|
|
|
@@ -861,9 +878,9 @@
|
|
|
|
# endif
|
|
|
|
# ifdef OPENBSD
|
|
|
|
# define OS_TYPE "OPENBSD"
|
|
|
|
-# define STACKBOTTOM ((ptr_t) 0xf8000000)
|
|
|
|
- extern int etext[];
|
|
|
|
-# define DATASTART ((ptr_t)(etext))
|
|
|
|
+# define HEURISTIC2
|
|
|
|
+# define DATASTART GC_data_start
|
|
|
|
+# define DYNAMIC_LOADING
|
|
|
|
# endif
|
|
|
|
# ifdef NETBSD
|
|
|
|
# define OS_TYPE "NETBSD"
|
2002-10-26 09:25:26 -04:00
|
|
|
@@ -1393,6 +1410,14 @@
|
2002-08-27 11:41:30 -04:00
|
|
|
# define DATASTART GC_data_start
|
|
|
|
# define ELFCLASS32 32
|
|
|
|
# define ELFCLASS64 64
|
|
|
|
+# define ELF_CLASS ELFCLASS64
|
|
|
|
+# define CPP_WORDSZ 64
|
|
|
|
+# define DYNAMIC_LOADING
|
|
|
|
+# endif
|
|
|
|
+# ifdef OPENBSD
|
|
|
|
+# define OS_TYPE "OPENBSD"
|
|
|
|
+# define HEURISTIC2
|
|
|
|
+# define DATASTART GC_data_start
|
|
|
|
# define ELF_CLASS ELFCLASS64
|
|
|
|
# define DYNAMIC_LOADING
|
2002-10-26 09:25:26 -04:00
|
|
|
# endif
|