pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ghc88 Add an additional note on PaX mprotect and ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b4f612de1f63
branches: trunk
changeset: 421780:b4f612de1f63
user: pho <pho%pkgsrc.org@localhost>
date: Sat Jan 18 13:43:38 2020 +0000
description:
Add an additional note on PaX mprotect and ASLR
diffstat:
lang/ghc88/Makefile | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 741f389e9c2e -r b4f612de1f63 lang/ghc88/Makefile
--- a/lang/ghc88/Makefile Sat Jan 18 13:16:35 2020 +0000
+++ b/lang/ghc88/Makefile Sat Jan 18 13:43:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2020/01/18 12:35:45 pho Exp $
+# $NetBSD: Makefile,v 1.9 2020/01/18 13:43:38 pho Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -110,6 +110,16 @@
NOT_PAX_MPROTECT_SAFE+= lib/${PKGNAME_NOREV}/bin/${f}
NOT_PAX_ASLR_SAFE+= lib/${PKGNAME_NOREV}/bin/${f}
.endfor
+# Additional note: Now that DYNAMIC_GHC_PROGRAMS is enabled by
+# default, we no longer need to disable PaX ASLR because the RTS
+# linker is not used... except for ghc-iserv. The program is launched
+# when ghci is started with -fexternal-interpreter without
+# -dynamic. Its purpose is to run non-PIC code from a dynamically
+# linked ghci, and therefore still uses RTS linker. Also note that RTS
+# linker requires PaX mprotect to be disabled too. This means that
+# once the merge request mentioned above is merged to the upstream, we
+# can at least enable PaX mprotect and PaX ASLR for all the
+# executables except ghc-iserv and ghc-iserv-prof.
# -----------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index