762ef6ce87
changes: - Add a patch provided by UCHIYAMA Yasushi in PR 26180 to support NetBSD/sh3. - Correctly define ELFSIZE for NetBSD. Fixes PR 26252 by Kouichirou Hiratsuka. Bump BUILDLINK_DEPNDS to 6.3nb1 for the ELFSIZE fix.
29 lines
732 B
Text
29 lines
732 B
Text
$NetBSD: patch-ad,v 1.19 2004/07/13 14:22:27 recht Exp $
|
|
|
|
--- include/private/gcconfig.h.orig 2004-05-06 01:10:54.000000000 +0200
|
|
+++ include/private/gcconfig.h 2004-07-13 10:19:42.000000000 +0200
|
|
@@ -97,6 +97,10 @@
|
|
# define ARM32
|
|
# define mach_type_known
|
|
# endif
|
|
+# if defined(NETBSD) && defined(__sh__)
|
|
+# define SH
|
|
+# define mach_type_known
|
|
+# endif
|
|
# if defined(vax)
|
|
# define VAX
|
|
# ifdef ultrix
|
|
@@ -1811,6 +1815,13 @@
|
|
extern int _end[];
|
|
# define DATAEND (_end)
|
|
# endif
|
|
+# ifdef NETBSD
|
|
+# define OS_TYPE "NETBSD"
|
|
+# define HEURISTIC2
|
|
+# define DATASTART GC_data_start
|
|
+# define USE_GENERIC_PUSH_REGS
|
|
+# define DYNAMIC_LOADING
|
|
+# endif
|
|
# endif
|
|
|
|
# ifdef SH4
|