diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2019-10-25 00:40:57 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2019-10-25 00:40:57 +0000 |
commit | cf9ee5b111370eab06b628fd3b3de1f4269c890c (patch) | |
tree | 16971e12c24ae3c67535f404c0f3cd52e86b3181 /gnu/usr.bin/clang/Makefile.inc | |
parent | 3eb9ecd525f93e5f4e45b006bbf90e0accd86cea (diff) |
Add retguard for octeon/mips64.
For this architecture we use separate retguard prologue and epilogue code
for static or PIC code. In the PIC case we use some additional code before
the retguard epilogue to recover the function start address and the GOT
pointer in order to get the per-function random cookie. Much thanks to
visa@ for suggestions and advice making it all work.
ok deraadt@ visa@
Diffstat (limited to 'gnu/usr.bin/clang/Makefile.inc')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index f89abdd6330..d5839ada0e2 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.15 2019/07/11 11:31:09 visa Exp $ +# $OpenBSD: Makefile.inc,v 1.16 2019/10/25 00:40:56 mortimer Exp $ LLVM_SRCS?= ${.CURDIR}/../../../llvm @@ -25,7 +25,8 @@ CPPFLAGS+= -DNDEBUG # Disable some protections in the compiler to regain performance. .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ - ${MACHINE_ARCH} == "aarch64" + ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" || \ + ${MACHINE_ARCH} == "aarch64" CXXFLAGS+= -fno-ret-protector .endif .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" |