Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+9
+4
tools/objtool/Makefile
··· 30 30 CFLAGS += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) 31 31 LDFLAGS += -lelf $(LIBSUBCMD) 32 32 33 + # Allow old libelf to be used: 34 + elfshdr := $(shell echo '\#include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr) 35 + CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED) 36 + 33 37 AWK = awk 34 38 export srctree OUTPUT CFLAGS ARCH AWK 35 39 include $(srctree)/tools/build/Makefile.include
+5
tools/objtool/elf.h
··· 23 23 #include <linux/list.h> 24 24 #include <linux/hashtable.h> 25 25 26 + #ifdef LIBELF_USE_DEPRECATED 27 + # define elf_getshdrnum elf_getshnum 28 + # define elf_getshdrstrndx elf_getshstrndx 29 + #endif 30 + 26 31 struct section { 27 32 struct list_head list; 28 33 GElf_Shdr sh;