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

objtool: Don't consider vmlinux a C-file

Avoids issuing C-file warnings for vmlinux.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200618144801.701257527@infradead.org

+1 -1
+1 -1
tools/objtool/check.c
··· 2772 2772 2773 2773 INIT_LIST_HEAD(&file.insn_list); 2774 2774 hash_init(file.insn_hash); 2775 - file.c_file = find_section_by_name(file.elf, ".comment"); 2775 + file.c_file = !vmlinux && find_section_by_name(file.elf, ".comment"); 2776 2776 file.ignore_unreachables = no_unreachable; 2777 2777 file.hints = false; 2778 2778