Skip to content
Commit 98e55f97 authored by Marek Behún's avatar Marek Behún Committed by Tom Rini
Browse files

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: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.gpk@gmx.de>
parent ead698ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment