mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Add "-assert pure-text" to the link line. The warnings about RRS
relocations in text sections are now dependant on this flag.
This commit is contained in:
parent
f329f664dd
commit
f8a7448fcc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26073
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user