From d2decbd140d166c0165c142c52152205590db487 Mon Sep 17 00:00:00 2001 From: Philippe Aubertin Date: Sun, 3 Nov 2024 02:23:53 -0500 Subject: [PATCH] Prevent warning about missing .note.GNU-stack section --- header.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/header.mk b/header.mk index 4ff45f05..f9e32977 100644 --- a/header.mk +++ b/header.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2019 Philippe Aubertin. +# Copyright (C) 2019-2024 Philippe Aubertin. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -122,7 +122,7 @@ CFLAGS = $(CFLAGS.arch) $(CFLAGS.optimization) $(CFLAGS.debug) $(C # Linker flags LDFLAGS.arch = -Wl,-m,elf_i386 -LDFLAGS.others = -static -nostdlib +LDFLAGS.others = -static -nostdlib -Wl,-z,noexecstack LDFLAGS = $(LDFLAGS.arch) $(LDFLAGS.others) $(LDFLAGS.extra) # NASM assembler flags