From f06d0b61c23e4246f9ee1a675c9e6c0409a6128f Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Wed, 27 Nov 2024 08:40:57 +0100 Subject: [PATCH] Make binaries position independent (#87) Should be standard nowadays. It allows the kernel to enable some security-related features like ASLR. --- src/runtime/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 9999a64..b5be559 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"${GIT_COMMIT}\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror +CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"${GIT_COMMIT}\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror -fPIE LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz -lfuse3 all: runtime