1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-17 23:03:29 +02:00

Switch m88k to PIE by default.

ok aoyama@
This commit is contained in:
miod
2025-11-17 16:06:09 +00:00
parent e68c2184b5
commit 8720e5dd16
2 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -124,10 +124,12 @@ __dcache_sync (addr, len) \
%{assert*} \
%{!static:%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}}"
/* As an elf system, we need crtbegin/crtend stuff. */
/* As an ELF system, we need crtbegin/crtend stuff. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "\
%{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
%{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} \
%{!p:%{!static:crt0%O%s} %{static:%{nopie:crt0%O%s} \
%{!nopie:rcrt0%O%s}}}} \
crtbegin%O%s} %{shared:crtbeginS%O%s}"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"
+4 -4
View File
@@ -1,4 +1,4 @@
# $OpenBSD: bsd.own.mk,v 1.215 2025/10/23 19:06:10 miod Exp $
# $OpenBSD: bsd.own.mk,v 1.216 2025/11/17 16:06:09 miod Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -20,9 +20,9 @@ GCC4_ARCH=alpha hppa m88k sh sparc64
LLD_ARCH=aarch64 amd64 arm i386 powerpc powerpc64 riscv64
LLDB_ARCH=aarch64 amd64
# m88k: ?
PIE_ARCH=aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc powerpc64 riscv64 sh sparc64
STATICPIE_ARCH=aarch64 alpha amd64 arm hppa i386 mips64 mips64el powerpc powerpc64 riscv64 sh sparc64
# Can't use ${CLANG_ARCH} ${GCC4_ARCH} below because of sparc64
PIE_ARCH=aarch64 alpha amd64 arm hppa i386 m88k mips64 mips64el powerpc powerpc64 riscv64 sh sparc64
STATICPIE_ARCH=${PIE_ARCH}
.for _arch in ${MACHINE_ARCH}
.if !empty(GCC4_ARCH:M${_arch})