[PATCH u-boot 10/39] linker_lists: declare lists and entries as __ADDRESSABLE for LTO

Bin Meng bmeng.cn at gmail.com
Mon Mar 8 08:44:48 CET 2021


On Sun, Mar 7, 2021 at 12:26 PM Marek Behún <marek.behun at nic.cz> wrote:
>
> Use the __ADDRESSABLE() macro to make entries and lists declared by
> ll_entry_declare() and ll_entry_declare_list() addressable so that when
> building with LTO the compiler does not optimize this data away.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> ---
>  include/linker_lists.h | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list