]> granicus.if.org Git - gc/commitdiff
use mprotect on more platforms to make JITted code executable
authorMatthew Flatt <mflatt@racket-lang.org>
Wed, 26 Apr 2006 22:07:24 +0000 (22:07 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 3 Nov 2013 08:44:53 +0000 (12:44 +0400)
svn: r2807

misc.c

diff --git a/misc.c b/misc.c
index a7f91873c0e64a0b57a17b9b90051ce0991de2d5..ec2e040e8a1a6d704d5f6d4b17a7773ef2a8c946 100644 (file)
--- 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)