]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: crc32: put the crc_table variable into efi_runtime_rodata section
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:00 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit98e55f97afc2a212185804e2c1130bebe980db73
tree8d90b95bf8535624d1365ae7ba31f02791a02d50
parentead698acbc3077eab5b209276a512ddc7fefb6b8
lib: crc32: put the crc_table variable into efi_runtime_rodata section

When compiling with LTO, the compiler fails with an error saying that
`crc_table` causes a section type conflict with `efi_var_buf`.

This is because both are declared to be in the same section (via macro
`__efi_runtime_data`), but one is const while the other is not.

Put this variable into the section .rodata.efi_runtime, instead of
.data.efi_runtime, via macro __efi_runtime_rodata.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Heinrich Schuchardt <xypron.gpk@gmx.de>
lib/crc32.c