Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand Fix the clang build by setting -z nosepa...



details:   https://anonhg.NetBSD.org/src/rev/bdf5fd384750
branches:  trunk
changeset: 373095:bdf5fd384750
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 18 12:28:54 2023 +0000

description:
Fix the clang build by setting -z noseparate-code

diffstat:

 sys/arch/i386/stand/Makefile.booters |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 05c76684465e -r bdf5fd384750 sys/arch/i386/stand/Makefile.booters
--- a/sys/arch/i386/stand/Makefile.booters      Wed Jan 18 11:53:25 2023 +0000
+++ b/sys/arch/i386/stand/Makefile.booters      Wed Jan 18 12:28:54 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.booters,v 1.94 2020/09/06 07:20:28 mrg Exp $
+#      $NetBSD: Makefile.booters,v 1.95 2023/01/18 12:28:54 christos Exp $
 
 NOLIBCSANITIZER=
 NOSANITIZER=
@@ -77,7 +77,7 @@
 cleanlibdir:
        -rm -rf lib
 
-LDFLAGS+=-Wl,-M -Wl,-e,start   # -N does not work properly.
+LDFLAGS+=-Wl,-z,noseparate-code -Wl,-M -Wl,-e,start    # -N does not work properly.
 
 LIBLIST=${LIBI386} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA}
 



Home | Main Index | Thread Index | Old Index