summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2025-02-09 19:44:01 +0000
committerAiden Gall <aiden@aidengall.xyz>2025-02-09 19:44:01 +0000
commit51852ce6d2f87cfb45e3efd5f2bc474d86c7ff8d (patch)
treee45b2839d0810eb828fb0afee27413b825788da3 /Makefile
parentd52282ec3292a1e366d3837e56ef1fb5f07ce178 (diff)
add SONAME and GNU-stack note
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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