lib: Mark lz4 as relocation code
authorSimon Glass <sjg@chromium.org>
Sun, 26 Jan 2025 18:43:22 +0000 (11:43 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 3 Feb 2025 22:01:36 +0000 (16:01 -0600)
commit6e5b3d4265971a0494c4ef016597f65c41651ed9
tree29c8614b771539b86578c874b4e5307d81580eaa
parent3b52337c759aea13379ff624c3204d920d87eeb7
lib: Mark lz4 as relocation code

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 a crash errors when trying to
access the data from relocated code. Make this conditional to avoid a
code-size increase when SPL_RELOC is not used/

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/lz4.c
lib/lz4_wrapper.c