From: Debian Haskell Group Date: Sat, 16 Jun 2012 10:48:18 +0000 (+0000) Subject: hurd-is-ELF X-Git-Tag: archive/raspbian/8.0.2-9+rpi1~1^2^2^2^2^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8bcfe4b14643d64155d48c13aac712523ae275c7;p=ghc.git hurd-is-ELF Gbp-Pq: Name hurd-is-ELF --- diff --git a/rts/Linker.c b/rts/Linker.c index 9fb3f68f..d31f4145 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -74,7 +74,7 @@ ( defined(linux_HOST_OS ) || defined(freebsd_HOST_OS) || \ defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS ) || \ defined(openbsd_HOST_OS ) || defined(darwin_HOST_OS ) || \ - defined(kfreebsdgnu_HOST_OS) ) + defined(kfreebsdgnu_HOST_OS) || defined(gnu_HOST_OS)) /* Don't use mmap on powerpc_HOST_ARCH as mmap doesn't support * reallocating but we need to allocate jump islands just after each * object images. Otherwise relative branches to jump islands can fail @@ -90,7 +90,7 @@ #endif -#if defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || defined(freebsd_HOST_OS) || defined(kfreebsdgnu_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS) +#if defined(linux_HOST_OS) || defined(solaris2_HOST_OS) || defined(freebsd_HOST_OS) || defined(kfreebsdgnu_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(openbsd_HOST_OS) || defined(gnu_HOST_OS) # define OBJFORMAT_ELF # include // regex is already used by dlopen() so this is OK // to use here without requiring an additional lib