linker: arm: discard .note.GNU-stack

Similar to what was required for x86 in #12719 / PR#12752

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
Peter Robinson 2019-06-04 09:36:27 +01:00 committed by Anas Nashif
commit ccd40d5502

View file

@ -477,6 +477,8 @@ GROUP_END(DTCM)
#include <linker/debug-sections.ld> #include <linker/debug-sections.ld>
/DISCARD/ : { *(.note.GNU-stack) }
SECTION_PROLOGUE(.ARM.attributes, 0,) SECTION_PROLOGUE(.ARM.attributes, 0,)
{ {
KEEP(*(.ARM.attributes)) KEEP(*(.ARM.attributes))