summaryrefslogtreecommitdiff
path: root/libexec/ld.so/amd64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2024-06-04 15:14:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2024-06-04 15:14:46 +0000
commit9cc822d2bd35e43e4296b0c8ebc38e0c3684cb56 (patch)
treebe15605825b231f029a11277323e378918add998 /libexec/ld.so/amd64
parent2e14e0c68c351352dd224815a531683d75507bd9 (diff)
enable -fret-clean on amd64, for libc libcrypto ld.so kernel, and all the
ssh tools. The dynamic objects are entirely ret-clean, static binaries will contain a blend of cleaning and non-cleaning callers.
Diffstat (limited to 'libexec/ld.so/amd64')
-rw-r--r--libexec/ld.so/amd64/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/amd64/Makefile.inc b/libexec/ld.so/amd64/Makefile.inc
index 3181b632d65..2211d1a9e80 100644
--- a/libexec/ld.so/amd64/Makefile.inc
+++ b/libexec/ld.so/amd64/Makefile.inc
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.7 2019/10/20 03:44:49 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2024/06/04 15:14:45 deraadt Exp $
CFLAGS += -fPIC -mno-sse2 -mno-sse -mno-3dnow -mno-mmx
+CFLAGS +=-fret-clean
AFLAGS += -fpic
LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script