From 12e18c45247a8c53aade2fb969e791ce6077d440 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 12 Aug 2024 12:21:57 +0700 Subject: [PATCH] fix(build): fix orphan sections warning kconfig variable --- Kconfig | 2 +- tools/cmake/project.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index c0421160b9..6d8e8d429c 100644 --- a/Kconfig +++ b/Kconfig @@ -583,7 +583,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" diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index d5e3da9455..a1986a93f8 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -720,7 +720,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()