mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-20 16:46:14 +00:00
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:
@@ -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")
|
||||
|
Reference in New Issue
Block a user