[PATCH u-boot v1.1 14.2/39] lib: crc32: put the crc_table variable into efi_runtime_rodata section
marex at denx.de
Mon Mar 8 09:43:52 CET 2021
On 3/8/21 8:01 AM, Marek Behún wrote:
> 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.
I think this is much better, thanks.
Reviewed-by: Marek Vasut <marex at denx.de>
More information about the U-Boot