diff --git a/build/make/ads2gas.pl b/build/make/ads2gas.pl
index be46582534851d62260f9db6639612ee48fc2fbe..362fcf4e82c2dd8151852956504396b294c406af 100755
--- a/build/make/ads2gas.pl
+++ b/build/make/ads2gas.pl
@@ -154,3 +154,6 @@ while (<STDIN>)
     next if /^\s*END\s*$/;
     print;
 }
+
+# Mark that this object doesn't need an executable stack.
+printf ("\t.section\t.note.GNU-stack,\"\",\%\%progbits\n");