Improve building with LTO
authorAlexander Miller <alex.miller@gmx.de>
Thu, 18 Feb 2021 02:38:56 +0000 (03:38 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 8 Nov 2021 21:33:05 +0000 (22:33 +0100)
commit039f427a3574ec75985c755108399a2bb37c2c86
tree5011f802564349666f35d32da38fc6bd6197bf3d
parentc1e8c8c6b25cb2b5c16553609f19a9ed5dd4e146
Improve building with LTO

Use symver attribute for symbol versioning instead of .symver
assembler directive when available. Convert to use double @ syntax
for default version in all cases (required when using the attribute).

Add the attributes externally_visible, no_reorder if available when
using assembler directives to improve the situation for < gcc-10.
This is not 100% reliable, though; -flto-partition=none may still be
needed in some cases.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24498
Signed-off-by: Alexander Miller <alex.miller@gmx.de>
18 files changed:
lib/ChangeLog
lib/eu-config.h
libdw/ChangeLog
libdw/dwarf_aggregate_size.c
libdw/dwarf_arrayorder.c
libdw/dwarf_bitoffset.c
libdw/dwarf_bitsize.c
libdw/dwarf_bytesize.c
libdw/dwarf_decl_column.c
libdw/dwarf_decl_file.c
libdw/dwarf_decl_line.c
libdw/dwarf_srclang.c
libdwelf/ChangeLog
libdwelf/dwelf_elf_begin.c
libdwfl/ChangeLog
libdwfl/core-file.c
libdwfl/dwfl_module_build_id.c
libdwfl/dwfl_report_elf.c