On Tue, 13 Oct 2026 09:43:13 +0200, Josef Schlehofer wrote:
> The generated keep-syms-lto.c gets an __ADDRESSABLE() entry for every
> linker list symbol that nm prints, including symbols that the input
> objects only reference and nothing defines. keep-syms-lto.c is compiled
> without LTO, so such an entry becomes a reference that the link cannot
> resolve unless .discard.addressable is dropped.
>
> Pass --defined-only to nm in the U-Boot and the xPL rule, so that only
> symbols defined by the scanned objects reach the generator.
>
> [...]
Applied to u-boot/main, thanks!
[1/1] Makefile: Skip undefined symbols in keep-syms-lto.c
commit: 5ab784245a445d683709b9bf10dc04f580c13afe
--
Tom