Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Explicitly set -z noseparate-code because the defau...



details:   https://anonhg.NetBSD.org/src/rev/0490e687b5d6
branches:  trunk
changeset: 372935:0490e687b5d6
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 06 15:35:05 2023 +0000

description:
Explicitly set -z noseparate-code because the default is about to change
and the boot blocks might not be able to load binaries with more than two
PT_LOAD sections.

diffstat:

 sys/arch/amd64/conf/Makefile.amd64 |  3 ++-
 sys/arch/i386/conf/Makefile.i386   |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r e22f04309719 -r 0490e687b5d6 sys/arch/amd64/conf/Makefile.amd64
--- a/sys/arch/amd64/conf/Makefile.amd64        Fri Jan 06 15:33:47 2023 +0000
+++ b/sys/arch/amd64/conf/Makefile.amd64        Fri Jan 06 15:35:05 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.amd64,v 1.85 2020/05/11 15:15:15 joerg Exp $
+#      $NetBSD: Makefile.amd64,v 1.86 2023/01/06 15:35:06 christos Exp $
 
 # Makefile for NetBSD
 #
@@ -109,6 +109,7 @@
 KERNLDSCRIPT?= ${AMD64}/conf/kern.ldscript
 .endif
 LINKFLAGS_NORMAL=      -X
+EXTRA_LINKFLAGS+=      -z noseparate-code
 
 ##
 ## (6) port specific target dependencies
diff -r e22f04309719 -r 0490e687b5d6 sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386  Fri Jan 06 15:33:47 2023 +0000
+++ b/sys/arch/i386/conf/Makefile.i386  Fri Jan 06 15:35:05 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.i386,v 1.196 2020/05/11 15:15:15 joerg Exp $
+#      $NetBSD: Makefile.i386,v 1.197 2023/01/06 15:35:05 christos Exp $
 
 # Makefile for NetBSD
 #
@@ -45,6 +45,7 @@
 CFLAGS+=       ${${ACTIVE_CC} == "gcc" :? -mindirect-branch-register :}
 .endif
 EXTRA_INCLUDES= -I$S/external/mit/xen-include-public/dist/
+EXTRA_LINKFLAGS= -z noseparate-code
 
 ##
 ## (3) libkern and compat



Home | Main Index | Thread Index | Old Index