Skip to content

Commit f06d0b6

Browse files
authored
Make binaries position independent (#87)
Should be standard nowadays. It allows the kernel to enable some security-related features like ASLR.
1 parent 59c34ff commit f06d0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC = gcc
2-
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
2+
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
33
LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz -lfuse3
44

55
all: runtime

0 commit comments

Comments
 (0)