diff options
| author | 2026-09-18 17:59:27 -0700 | |
|---|---|---|
| committer | 2026-09-24 11:37:05 -0400 | |
| commit | cfcc465018818fb4f08148a28adb5b0cb40a9ec1 (patch) | |
| tree | 0a74916617a2364cc2ad8abde50f9a75e082b3ee /scripts/Makefile.thinlto | |
| parent | kconfig: Replace "cc-option-bit" with "cc-option-str" (diff) | |
kconfig: Add "ld-option-str"
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@kernel.org>
Tested-by: Julian Braha <julianbraha@gmail.com>
Reviewed-by: Julian Braha <julianbraha@gmail.com>
Link: https://patch.msgid.link/20260919005929.4077729-3-kees@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
