]> Git Repo - J-u-boot.git/commit
lib: crc32: put the crc_table variable into efi_runtime_rodata section
authorMarek Behún <[email protected]>
Thu, 20 May 2021 11:24:00 +0000 (13:24 +0200)
committerTom Rini <[email protected]>
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
lib/crc32.c
This page took 0.02982 seconds and 4 git commands to generate.