diff options
| author | Aiden Gall <aiden@aidengall.xyz> | 2025-02-09 19:44:01 +0000 |
|---|---|---|
| committer | Aiden Gall <aiden@aidengall.xyz> | 2025-02-09 19:44:01 +0000 |
| commit | 51852ce6d2f87cfb45e3efd5f2bc474d86c7ff8d (patch) | |
| tree | e45b2839d0810eb828fb0afee27413b825788da3 /Makefile | |
| parent | d52282ec3292a1e366d3837e56ef1fb5f07ce178 (diff) | |
add SONAME and GNU-stack note
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
