summaryrefslogtreecommitdiff
path: root/tools/objtool/elf.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-25 16:52:19 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-25 16:52:19 -0700
commitc4a346002bc06046bc51910a7ade3a0c650c3d34 (patch)
treea1a8a29e423fce067a784ec89068532637bebc8e /tools/objtool/elf.h
parent0985b65d3ba2c09f10a594b73df45c1f7f68d317 (diff)
parent2e51f26245701cb28f154552836b7807159088a8 (diff)
downloadlinux-c4a346002bc06046bc51910a7ade3a0c650c3d34.tar.gz
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool build fix from Ingo Molnar: "An libtool fix for older libelf versions" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Allow building with older libelf
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r--tools/objtool/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h
index 7f3e00a2f907..aa1ff6596684 100644
--- a/tools/objtool/elf.h
+++ b/tools/objtool/elf.h
@@ -23,6 +23,11 @@
#include <linux/list.h>
#include <linux/hashtable.h>
+#ifdef LIBELF_USE_DEPRECATED
+# define elf_getshdrnum elf_getshnum
+# define elf_getshdrstrndx elf_getshstrndx
+#endif
+
struct section {
struct list_head list;
GElf_Shdr sh;