aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2003-04-16 18:28:29 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2003-04-16 18:28:29 +0000
commit351c2c4b2f40cc375952325858a9593f1a8d34b5 (patch)
tree46ac73105784ee4fb726781d31add1c4990869fc /boehm-gc/include
parent908a31e1b13578b5ba83c7acf07be1060da01495 (diff)
downloadgcc-351c2c4b2f40cc375952325858a9593f1a8d34b5.zip
gcc-351c2c4b2f40cc375952325858a9593f1a8d34b5.tar.gz
gcc-351c2c4b2f40cc375952325858a9593f1a8d34b5.tar.bz2
* include/private/gcconfig.h: Add support for arm-netbsdelf.
From-SVN: r65692
Diffstat (limited to 'boehm-gc/include')
-rw-r--r--boehm-gc/include/private/gcconfig.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/boehm-gc/include/private/gcconfig.h b/boehm-gc/include/private/gcconfig.h
index b07d4b9..809887f 100644
--- a/boehm-gc/include/private/gcconfig.h
+++ b/boehm-gc/include/private/gcconfig.h
@@ -46,7 +46,7 @@
/* Determine the machine type: */
# if defined(__arm__) || defined(__thumb__)
# define ARM32
-# if !defined(LINUX)
+# if !defined(LINUX) && !defined(NETBSD)
# define NOSYS
# define mach_type_known
# endif
@@ -77,7 +77,7 @@
# define POWERPC
# define mach_type_known
# endif
-# if defined(NETBSD) && defined(__arm32__)
+# if defined(NETBSD) && defined(__arm__)
# define ARM32
# define mach_type_known
# endif
@@ -1562,8 +1562,13 @@
# ifdef NETBSD
# define OS_TYPE "NETBSD"
# define HEURISTIC2
- extern char etext[];
-# define DATASTART ((ptr_t)(etext))
+# ifdef __ELF__
+# define DATASTART GC_data_start
+# define DYNAMIC_LOADING
+# else
+ extern char etext[];
+# define DATASTART ((ptr_t)(etext))
+# endif
# define USE_GENERIC_PUSH_REGS
# endif
# ifdef LINUX