Source-Changes-HG archive

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

[src/trunk]: src Force at most partial RELRO for rump_server and related libr...



details:   https://anonhg.NetBSD.org/src/rev/4b9d593b9f53
branches:  trunk
changeset: 990671:4b9d593b9f53
user:      nia <nia%NetBSD.org@localhost>
date:      Mon Nov 01 21:37:32 2021 +0000

description:
Force at most partial RELRO for rump_server and related libraries

rump_server with -l uses lazy resolution by default and thus cannot be
used with full RELRO/BIND_NOW.

diffstat:

 lib/librump/Makefile            |  4 +++-
 lib/librumpclient/Makefile      |  4 +++-
 lib/librumpdev/Makefile         |  4 +++-
 lib/librumphijack/Makefile      |  4 +++-
 lib/librumpnet/Makefile         |  4 +++-
 lib/librumpres/Makefile         |  3 ++-
 lib/librumpuser/Makefile        |  4 +++-
 lib/librumpvfs/Makefile         |  4 +++-
 usr.bin/rump_allserver/Makefile |  4 +++-
 usr.bin/rump_server/Makefile    |  4 +++-
 10 files changed, 29 insertions(+), 10 deletions(-)

diffs (133 lines):

diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librump/Makefile
--- a/lib/librump/Makefile      Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librump/Makefile      Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.6 2019/10/13 07:28:10 mrg Exp $
+#      $NetBSD: Makefile,v 1.7 2021/11/01 21:37:32 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 RUMPTOP=       ${.CURDIR}/../../sys/rump
 
 LIBDPLIBS+=     rumpuser ${.CURDIR}/../librumpuser
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpclient/Makefile
--- a/lib/librumpclient/Makefile        Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpclient/Makefile        Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.15 2019/10/13 07:28:11 mrg Exp $
+#      $NetBSD: Makefile,v 1.16 2021/11/01 21:37:32 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 .PATH: ${.CURDIR}/../../sys/rump/librump/rumpkern
 
 LIB=           rumpclient
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpdev/Makefile
--- a/lib/librumpdev/Makefile   Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpdev/Makefile   Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.1 2009/09/03 15:35:59 pooka Exp $
+#      $NetBSD: Makefile,v 1.2 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 RUMPTOP=       ${.CURDIR}/../../sys/rump
 
 LIBDPLIBS+=    rump    ${.CURDIR}/../librump
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumphijack/Makefile
--- a/lib/librumphijack/Makefile        Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumphijack/Makefile        Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.22 2019/09/16 00:00:56 kamil Exp $
+#      $NetBSD: Makefile,v 1.23 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 LIB=           rumphijack
 NOSTATICLIB=   dlfun
 NOPROFILE=     dlfun
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpnet/Makefile
--- a/lib/librumpnet/Makefile   Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpnet/Makefile   Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.2 2009/02/12 13:20:17 lukem Exp $
+#      $NetBSD: Makefile,v 1.3 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 RUMPTOP=       ${.CURDIR}/../../sys/rump
 
 LIBDPLIBS+=     rump   ${.CURDIR}/../librump
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpres/Makefile
--- a/lib/librumpres/Makefile   Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpres/Makefile   Mon Nov 01 21:37:32 2021 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2019/10/13 07:28:11 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2021/11/01 21:37:33 nia Exp $
 
 USE_FORT?=     yes
 USE_SHLIBDIR=   yes
+NOFULLRELRO=   yes
 
 .include <bsd.own.mk>
 
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpuser/Makefile
--- a/lib/librumpuser/Makefile  Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpuser/Makefile  Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.28 2019/10/13 07:28:11 mrg Exp $
+#      $NetBSD: Makefile,v 1.29 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 .include <bsd.own.mk>
 
 WARNS?=                5
diff -r 15fb432dca8e -r 4b9d593b9f53 lib/librumpvfs/Makefile
--- a/lib/librumpvfs/Makefile   Mon Nov 01 21:28:01 2021 +0000
+++ b/lib/librumpvfs/Makefile   Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.5 2014/11/09 17:39:37 pooka Exp $
+#      $NetBSD: Makefile,v 1.6 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 RUMPTOP=       ${.CURDIR}/../../sys/rump
 
 LIBDPLIBS+=     rump   ${.CURDIR}/../librump
diff -r 15fb432dca8e -r 4b9d593b9f53 usr.bin/rump_allserver/Makefile
--- a/usr.bin/rump_allserver/Makefile   Mon Nov 01 21:28:01 2021 +0000
+++ b/usr.bin/rump_allserver/Makefile   Mon Nov 01 21:37:32 2021 +0000
@@ -1,9 +1,11 @@
-#      $NetBSD: Makefile,v 1.14 2021/07/07 11:51:45 martin Exp $
+#      $NetBSD: Makefile,v 1.15 2021/11/01 21:37:33 nia Exp $
 #
 
 PROG=  rump_allserver
 MLINKS+=rump_allserver.1 rump_server.1
 
+NOFULLRELRO=   yes
+
 RUMPTOP=${.CURDIR}/../../sys/rump
 
 .include "${RUMPTOP}/dev/Makefile.rumpdevcomp"
diff -r 15fb432dca8e -r 4b9d593b9f53 usr.bin/rump_server/Makefile
--- a/usr.bin/rump_server/Makefile      Mon Nov 01 21:28:01 2021 +0000
+++ b/usr.bin/rump_server/Makefile      Mon Nov 01 21:37:32 2021 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.16 2021/08/22 22:24:12 rillig Exp $
+#      $NetBSD: Makefile,v 1.17 2021/11/01 21:37:33 nia Exp $
 #
 
+NOFULLRELRO=   yes
+
 .PATH: ${.CURDIR}/../rump_allserver
 
 PROG=          rump_server



Home | Main Index | Thread Index | Old Index