Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-07 Thread Marek Behun
On Sun, 7 Mar 2021 13:31:11 +0100 Pali Rohár wrote: > On Sunday 07 March 2021 13:26:36 Marek Behun wrote: > > On Sun, 7 Mar 2021 06:02:16 +0100 > > Marek Vasut wrote: > > > > > On 3/7/21 5:58 AM, Marek Behun wrote: > > > > On Sun, 7 Mar 2021 05:46:24 +0100 > > > > Marek Vasut wrote: > > >

Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-07 Thread Pali Rohár
On Sunday 07 March 2021 13:26:36 Marek Behun wrote: > On Sun, 7 Mar 2021 06:02:16 +0100 > Marek Vasut wrote: > > > On 3/7/21 5:58 AM, Marek Behun wrote: > > > On Sun, 7 Mar 2021 05:46:24 +0100 > > > Marek Vasut wrote: > > > > > >> On 3/7/21 5:25 AM, Marek Behún wrote: > > >>> When compiling

Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-07 Thread Marek Behun
On Sun, 7 Mar 2021 06:02:16 +0100 Marek Vasut wrote: > On 3/7/21 5:58 AM, Marek Behun wrote: > > On Sun, 7 Mar 2021 05:46:24 +0100 > > Marek Vasut wrote: > > > >> On 3/7/21 5:25 AM, Marek Behún wrote: > >>> When compiling with LTO, the compiler fails with an error saying that > >>> `crc_tab

Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-06 Thread Marek Vasut
On 3/7/21 5:58 AM, Marek Behun wrote: On Sun, 7 Mar 2021 05:46:24 +0100 Marek Vasut wrote: On 3/7/21 5:25 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 decla

Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-06 Thread Marek Behun
On Sun, 7 Mar 2021 05:46:24 +0100 Marek Vasut wrote: > On 3/7/21 5:25 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 se

Re: [PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-06 Thread Marek Vasut
On 3/7/21 5:25 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 othe

[PATCH u-boot 14/39] lib: crc32: make the crc_table variable non-const

2021-03-06 Thread Marek Behún
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. Make this variable non-const