Ld error 'missing .note.GNU-stack section'

There is something strange going on: the lld linker ignores note.GNU-stack as a policy, and the warning that you see is a BFD warning.

Anyway, you should be able to silence those warnings by adding -z noexecflags -z noexecstack to the linker flags.

1 Like