mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02: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:
@@ -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
|
||||
|
@@ -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