fix(tools): suppress GNU bin-utils warning about executable stack

Newer GNU bin-utils version 2.39 has started emitting a warning
about an executable stack region for Linux target build:

/usr/bin/ld: warning: x509_crt_bundle.S.o: missing .note.GNU-stack section implies executable stack

Fix the issue by adding appropriate "noexecute" attribute for stack
section.
This commit is contained in:
Mahavir Jain
2025-03-28 13:56:29 +05:30
parent 201e4f3eb3
commit 32875d5a66
2 changed files with 4 additions and 1 deletions

View File

@@ -86,3 +86,7 @@ else()
make_and_append_identifier("${varname}_length")
endif()
append_line(".long ${data_len}")
append_line("")
append_line("#if defined (__linux__)")
append_line(".section .note.GNU-stack,\"\",@progbits")
append_line("#endif")