diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-10-12 11:27:08 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-10-12 11:27:08 +0000 |
commit | 253e820a4db794c4c5e39e8e6d6bf2775f25d0cc (patch) | |
tree | ccda787f69b5f325aae9fbf769f831cfc0411805 /stand/efi/loader | |
parent | cf084e9e9283ba2e4a5a73e54552508fff763379 (diff) | |
download | src-253e820a4db794c4c5e39e8e6d6bf2775f25d0cc.tar.gz src-253e820a4db794c4c5e39e8e6d6bf2775f25d0cc.zip |
Link efi programs with -pie rather than -shared
This was causing build failures in CheriBSD where we were passing -pie
already by default.
Reviewed By: andrew
Differential Revision: https://reviews.freebsd.org/D24787
Notes
Notes:
svn path=/head/; revision=366644
Diffstat (limited to 'stand/efi/loader')
-rw-r--r-- | stand/efi/loader/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/efi/loader/Makefile b/stand/efi/loader/Makefile index a8fbaabfdf4e..a0e7f95b8200 100644 --- a/stand/efi/loader/Makefile +++ b/stand/efi/loader/Makefile @@ -82,7 +82,7 @@ LINKS+= ${BINDIR}/${LOADER}.efi ${BINDIR}/loader.efi .endif LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE}/ldscript.${MACHINE} -LDFLAGS+= -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext -shared +LDFLAGS+= -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext -pie CLEANFILES+= loader.efi |