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
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
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.
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
4 matches
Mail list logo