[PATCH master 0/3] elf: restructure to fix sandbox allyesconfig breakage

Sascha Hauer s.hauer at pengutronix.de
Sun Jan 25 23:33:30 PST 2026


On Fri, 23 Jan 2026 14:17:10 +0100, Ahmad Fatoum wrote:
> common/elf.c contains code that's only relevant to barebox proper, code
> that is only used by the PBL and code that is used for both.
> 
> This works when we compile with linker garbage collection, but we don't
> do this on sandbox. Sandbox is a PBL-only platform nowadays, so this
> leads to linker errors as without LTO, the linker can't determine that
> e.g. the reference to list_sort is ultimately unused in PBL.
> 
> [...]

Applied, thanks!

[1/3] elf: rename elf.h to <linux/elf.h>
      https://git.pengutronix.de/cgit/barebox/commit/?id=d38823830da9 (link may not be stable)
[2/3] common: elf: split barebox proper-only ELF support from the rest
      https://git.pengutronix.de/cgit/barebox/commit/?id=fdbb4c9feac6 (link may not be stable)
[3/3] common: elf: reorganize barebox proper parts in struct elf_image
      https://git.pengutronix.de/cgit/barebox/commit/?id=a1df2e0ea933 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list