Re: [PATCH 3/3] kconfig: Add "ld-option-str"
From: Julian Braha
Date: Mon Sep 21 2026 - 09:28:36 EST
On 9/19/26 01:59, Kees Cook wrote:
> Add the linker counterpart to $(cc-option-str), sharing a $(ld-probe)
> with $(ld-option) the way the compiler macros share $(cc-probe). Like
> $(cc-option-str), it can now be used as:
>
> config LD_OPT_FOO
> def_string "$(ld-option-str,--new-option,--old-option)"
>
> An omitted fallback expands to the empty string.
>
> Build tested ARCH=x86_64 defconfig with GCC 16.2.0, and checked against
> GNU ld 2.47.
>
> Assisted-by: LLM
> Signed-off-by: Kees Cook <kees@xxxxxxxxxx>
Tested-by: Julian Braha <julianbraha@xxxxxxxxx>
Reviewed-by: Julian Braha <julianbraha@xxxxxxxxx>