Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Update MKSTATICPIE entry to actually do something.



details:   https://anonhg.NetBSD.org/src/rev/3d24461ea808
branches:  trunk
changeset: 320582:3d24461ea808
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jul 12 21:41:25 2018 +0000

description:
Update MKSTATICPIE entry to actually do something.

diffstat:

 share/mk/bsd.README |  5 +++--
 share/mk/bsd.own.mk |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 4328d54d1eb5 -r 3d24461ea808 share/mk/bsd.README
--- a/share/mk/bsd.README       Thu Jul 12 21:39:24 2018 +0000
+++ b/share/mk/bsd.README       Thu Jul 12 21:41:25 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.378 2018/07/12 06:52:49 maxv Exp $
+#      $NetBSD: bsd.README,v 1.379 2018/07/12 21:41:25 joerg Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -430,7 +430,8 @@
                Default: yes
 
 MKSTATICPIE    Compile in support for static pie binaries. These binaries
-               use a special rcrt0.o/mcrt0.o that do the necessary relocations
+               use a special support in crt0.o for resolving relative
+               relocations and require linker support.
                Default: yes on platforms that support it.
 
 MKSTRIPSYM     If "yes", strip all local symbols from shared libraries;
diff -r 4328d54d1eb5 -r 3d24461ea808 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu Jul 12 21:39:24 2018 +0000
+++ b/share/mk/bsd.own.mk       Thu Jul 12 21:41:25 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1066 2018/06/22 17:31:24 christos Exp $
+#      $NetBSD: bsd.own.mk,v 1.1067 2018/07/12 21:41:25 joerg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1054,8 +1054,8 @@
 MKRELRO?=      no
 .endif
 
-.if ${MACHINE_ARCH} == "x86_64"
-MKSTATICPIE?=  no
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
+MKSTATICPIE?=  yes
 .else
 MKSTATICPIE?=  no
 .endif



Home | Main Index | Thread Index | Old Index