From: Matthew Flatt Date: Wed, 26 Apr 2006 22:07:24 +0000 (+0000) Subject: use mprotect on more platforms to make JITted code executable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=545d9e7071753f3d98c5b77f8cc42e06251b1f7d;p=gc use mprotect on more platforms to make JITted code executable svn: r2807 --- diff --git a/misc.c b/misc.c index a7f91873..ec2e040e 100644 --- a/misc.c +++ b/misc.c @@ -660,7 +660,8 @@ void GC_init_inner() GC_init_linux_data_start(); # endif # if (defined(NETBSD) || defined(OPENBSD)) && defined(__ELF__) - GC_init_netbsd_elf(); + if (!GC_no_dls) /* PLTSCHEME: hack */ + GC_init_netbsd_elf(); # endif # if defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) \ || defined(GC_WIN32_THREADS)