]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: eliminate unused functions from binaries
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 24 Oct 2023 06:30:47 +0000 (08:30 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Nov 2023 02:38:01 +0000 (22:38 -0400)
commitbe6a249b417fb159db6fc3f4b7d72eb2fd036554
tree273285cfbf999e57ac8a402c5ce0e43373156de9
parenta4ed4c8a51435a63ca79e6d7bca317eff30e9ed3
sandbox: eliminate unused functions from binaries

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@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/sandbox/config.mk
arch/sandbox/cpu/u-boot.lds