From 0453aca5af7e6d36307f9487e2126076bdbf9bb1 Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Tue, 19 Jul 2011 13:09:22 -0700 Subject: [PATCH] Mark ARM asm objects as allowing a non-executable stack. This adds the magic .note.GNU-stack section at the end of each ARM asm file (when built with gas), indicating that a non-executable stack is allowed. Without this section, the linker will assume the object requires an executable stack by default, forcing an executable stack for the entire program. Change-Id: Ie86de6a449b52d392b9e5e0479833ed8c508ee65 --- build/make/ads2gas.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/make/ads2gas.pl b/build/make/ads2gas.pl index be4658253..362fcf4e8 100755 --- a/build/make/ads2gas.pl +++ b/build/make/ads2gas.pl @@ -154,3 +154,6 @@ while () 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"); -- 2.40.0