objtool: Allow building with older libelf
[cascardo/linux.git] / tools / objtool / elf.h
index 7f3e00a..aa1ff65 100644 (file)
 #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;