[PATCH v3 1/1] sandbox: eliminate unused functions from binaries

Simon Glass sjg at chromium.org
Thu Nov 2 23:49:06 CET 2023


On Tue, Oct 24, 2023 at 08:30:47AM +0200, Heinrich Schuchardt wrote:

> The sandbox should closely mimic other architectures.
>
> Place each function or data in a separate section and let the linker
> eliminate unused ones. This will reduce the binary size.
>
> In the linker script mark that u_boot_sandbox_getopt are to be kept.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list