xtensa: fix xtensa-sample-controller.ld to avoid .note.GNU-stack warnings

Prevent `warning: orphan section `.note.GNU-stack'` when building using
`west build -b xt-sim samples/hello_world`

Signed-off-by: William Tambe <williamt@cadence.com>
This commit is contained in:
William Tambe 2023-09-27 08:52:01 -08:00 committed by Carles Cufí
commit 9c4a6712b2

View file

@ -647,4 +647,6 @@ SECTIONS
{
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
}
/DISCARD/ : { *(.note.GNU-stack) }
}