[PATCH 06/19] lib: Mark lz4 as relocation code

Tom Rini trini at konsulko.com
Thu Sep 26 06:06:58 CEST 2024


On Wed, Sep 25, 2024 at 02:55:32PM +0200, Simon Glass wrote:

> Mark the lz4 decompression code as needed by relocation. This is used to
> decompress the next-phase image.
> 
> Drop the 'safe' versions from SPL as they are not needed. Change the
> static array to a local one, to avoid link errors when trying to access
> the data.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  lib/lz4.c         | 27 +++++++++++++++------------

Some amount of how you're restructuring here leads to (a number of
platforms):
            puma-rk3399    : all +132 bss +16 rodata -64 text +180
               u-boot: add: 0/-2, grow: 3/0 bytes: 180/-64 (116)
                 function                                   old     new   delta
                 ulz4fn                                    1396    1456     +60
                 LZ4_decompress_safe_partial               1056    1116     +60
                 LZ4_decompress_safe                       1020    1080     +60
                 static.inc32table                           32       -     -32
                 static.dec64table                           32       -     -32

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240925/4c8d7d6d/attachment.sig>


More information about the U-Boot mailing list