From f8a7448fcc1b03ae78017a57735a4d057f73fe76 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 23 May 1997 17:50:35 +0000 Subject: [PATCH] Add "-assert pure-text" to the link line. The warnings about RRS relocations in text sections are now dependant on this flag. --- share/mk/bsd.lib.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 7b41dd38723c..c386124965ef 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.55 1997/05/04 21:30:40 jdp Exp $ +# $Id: bsd.lib.mk,v 1.56 1997/05/23 08:38:46 asami Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -153,7 +153,7 @@ SOBJS+= ${OBJS:.o=.so} lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: ${SOBJS} @${ECHO} building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\) @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} - @${LDDESTDIRENV} ${CC} -shared -Wl,-x \ + @${LDDESTDIRENV} ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text \ -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ `lorder ${SOBJS} | tsort -q` ${LDDESTDIR} ${LDADD}