[U-Boot] [PATCH] spl: remove forced linking of commands into SPL

Tom Rini trini at ti.com
Fri Aug 10 01:00:39 CEST 2012


On Wed, Aug 08, 2012 at 07:24:13PM -0700, Tyler Olmstead wrote:

> Remove linker command line options from the SPL makefile
> that force the inclusion of unreferenced command code from
> linked object files. As commands are not used in the SPL,
> these options resulted in an unnecessary increase in the
> image size, in addition to introducing the possibility of
> tricky link errors in the case where the command code
> contained symbols that were not resolved by linking in the
> limited objects compiled in the SPL build.
> 
> Signed-off-by: Tyler Olmstead <tyler.j.olmstead at gmail.com>

OK, I've done some more poking at the specific problem I found and,
well, we're doing everything right and I don't have a solution, but I
think this patch moves us forward.  Based on what I'm seeing so far,
new U_BOOT_CMDs would be removed correctly, including strings.  Or be
fixed when I fix the current problem.

Acked-by: Tom Rini <trini at ti.com>

-- 
Tom


More information about the U-Boot mailing list