From 788c45fcaba9e64d84a1a293217bb532259168c7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 2 May 2025 12:15:55 -0400 Subject: build: Add -no-pie to linker flags Some hosts like OpenBSD like creating position independent executables by default for security reasons... However this does not work for bare metal applications and we must ensure this always remains off. Signed-off-by: Ian Moffett --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 35595b1..f068df6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -9,7 +9,7 @@ override ARCH = @ARCH@ override HYRA_VERSION = @PACKAGE_VERSION@ override PROMPT := printf "%s\t\t%s\n" override KERNEL_CFLAGS = @KERNEL_CFLAGS@ $(KERNEL_DEFINES) -override KERNEL_LDFLAGS = -nostdlib -znoexecstack -zmax-page-size=0x1000 -static -Tsys/arch/$(ARCH)/conf/link.ld +override KERNEL_LDFLAGS = -no-pie -nostdlib -znoexecstack -zmax-page-size=0x1000 -static -Tsys/arch/$(ARCH)/conf/link.ld override QEMU_FLAGS = @QEMU_FLAGS@ override KERNEL_DEFINES = $ -DHYRA_VERSION="\"$(HYRA_VERSION)\""\ -DHYRA_BUILDDATE="\"@HYRA_BUILDDATE@\""\ -- cgit v1.2.3