projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
objtool: Allow building with older libelf
[cascardo/linux.git]
/
tools
/
objtool
/
elf.h
diff --git
a/tools/objtool/elf.h
b/tools/objtool/elf.h
index
7f3e00a
..
aa1ff65
100644
(file)
--- 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;