fix(build): fix orphan sections warning kconfig variable

This commit is contained in:
Alexey Lapshin 2024-08-12 12:21:57 +07:00 committed by BOT
parent 884caed878
commit 64f9917dde
2 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
config COMPILER_ORPHAN_SECTIONS_WARNING
bool "Place with warning"
help
Places orphan sections without a warning message.
Places orphan sections with a warning message.
config COMPILER_ORPHAN_SECTIONS_PLACE
bool "Place silently"

View File

@ -825,7 +825,7 @@ macro(project project_name)
# Do not print RWX segment warnings
target_link_options(${project_elf} PRIVATE "-Wl,--no-warn-rwx-segments")
endif()
if(CONFIG_ESP_ORPHAN_SECTION_WARNING)
if(CONFIG_COMPILER_ORPHAN_SECTIONS_WARNING)
# Print warnings if orphan sections are found
target_link_options(${project_elf} PRIVATE "-Wl,--orphan-handling=warn")
endif()