From 51852ce6d2f87cfb45e3efd5f2bc474d86c7ff8d Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Sun, 9 Feb 2025 19:44:01 +0000 Subject: add SONAME and GNU-stack note --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4d70e09..773c346 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,12 @@ libtco.a: tco.o ${AR} -crs $@ $^ libtco.so: tco.o - ${CC} -shared $^ -o $@ ${LDFLAGS} + ${CC} -shared $^ -o $@ -Wl,-soname,$@ ${LDFLAGS} %.o: %.asm fasm $< $@ + objcopy --add-section ".note.GNU-stack"=/dev/null \ + --set-section-flags ".note.GNU-stack"=contents,readonly $@ clean: rm -f tco.o libtco.a libtco.so -- cgit v1.2.3