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 ef1a5075f5
commit 87947712af
2 changed files with 4 additions and 1 deletions

View File

@@ -41,4 +41,3 @@ warning: unknown kconfig symbol 'UNITY_FREERTOS_STACK_SIZE' assigned to '12288'
warning: unknown kconfig symbol 'WPA3_SAE' assigned to 'y' in .*/components/wpa_supplicant/test_apps/sdkconfig.defaults
ld: warning: ignoring duplicate libraries
archive library: .+ the table of contents is empty
warning: x509_crt_bundle.S.o: missing .note.GNU-stack section implies executable stack

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")