diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-02 12:15:55 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-02 12:15:55 -0400 |
commit | 788c45fcaba9e64d84a1a293217bb532259168c7 (patch) | |
tree | 9e457d96d4b78936fbe7a87915bc97de93abdf46 | |
parent | 6453151425085f2f1ef9edd24a6941c9a0b49c67 (diff) |
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 <ian@osmora.org>
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
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@\""\ |