summaryrefslogtreecommitdiff
path: root/libdwelf/dwelf_elf_begin.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 /libdwelf/dwelf_elf_begin.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 'libdwelf/dwelf_elf_begin.c')
-rw-r--r--libdwelf/dwelf_elf_begin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwelf/dwelf_elf_begin.c b/libdwelf/dwelf_elf_begin.c
index c7d63a1c..c3cfe633 100644
--- a/libdwelf/dwelf_elf_begin.c
+++ b/libdwelf/dwelf_elf_begin.c
@@ -36,6 +36,7 @@
#include <unistd.h>
+NEW_VERSION (dwelf_elf_begin, ELFUTILS_0.177)
Elf *
dwelf_elf_begin (int fd)
{
@@ -61,4 +62,3 @@ dwelf_elf_begin (int fd)
return NULL;
}
OLD_VERSION (dwelf_elf_begin, ELFUTILS_0.175)
-NEW_VERSION (dwelf_elf_begin, ELFUTILS_0.177)