Re: [RFC PATCH u-boot 03/12] linker_lists: declare entries and lists externally visible

2021-03-05 Thread Marek Behun
On Fri, 5 Mar 2021 11:04:08 +0800 Bin Meng wrote: > On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > > > Use the `__visible` macro to declare entires and lists declared by > > ll_entry_declare() and ll_entry_declare_list() externally visible, so > > that when building with LTO the

Re: [RFC PATCH u-boot 03/12] linker_lists: declare entries and lists externally visible

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > Use the `__visible` macro to declare entires and lists declared by > ll_entry_declare() and ll_entry_declare_list() externally visible, so > that when building with LTO the compiler does not optimize this data > away. > __visible is defined

Re: [RFC PATCH u-boot 03/12] linker_lists: declare entries and lists externally visible

2021-03-04 Thread Marek Behun
We need to use the __ADDRESSABLE() macro from linux/compiler.h like Linux does in order to make it work even with clang's LTO.

[RFC PATCH u-boot 03/12] linker_lists: declare entries and lists externally visible

2021-03-02 Thread Marek Behún
Use the `__visible` macro to declare entires and lists declared by ll_entry_declare() and ll_entry_declare_list() externally visible, so that when building with LTO the compiler does not optimize this data away. Signed-off-by: Marek Behún --- include/linker_lists.h | 6 -- 1 file changed, 4