summaryrefslogtreecommitdiff
path: root/libdw/dwarf_bytesize.c
diff options
context:
space:
mode:
authorAlexander Miller <alex.miller@gmx.de>2021-02-18 03:38:56 +0100
committerMark Wielaard <mark@klomp.org>2021-11-08 22:33:05 +0100
commit039f427a3574ec75985c755108399a2bb37c2c86 (patch)
tree5011f802564349666f35d32da38fc6bd6197bf3d /libdw/dwarf_bytesize.c
parentc1e8c8c6b25cb2b5c16553609f19a9ed5dd4e146 (diff)
downloadelfutils-039f427a3574ec75985c755108399a2bb37c2c86.tar.gz
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>
Diffstat (limited to 'libdw/dwarf_bytesize.c')
-rw-r--r--libdw/dwarf_bytesize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/dwarf_bytesize.c b/libdw/dwarf_bytesize.c
index 116cd321..6d1ff9ae 100644
--- a/libdw/dwarf_bytesize.c
+++ b/libdw/dwarf_bytesize.c
@@ -35,6 +35,7 @@
#include "libdwP.h"
+NEW_VERSION (dwarf_bytesize, ELFUTILS_0.143)
int
dwarf_bytesize (Dwarf_Die *die)
{
@@ -46,4 +47,3 @@ dwarf_bytesize (Dwarf_Die *die)
&value) == 0 ? (int) value : -1;
}
OLD_VERSION (dwarf_bytesize, ELFUTILS_0.122)
-NEW_VERSION (dwarf_bytesize, ELFUTILS_0.143)