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

Configure Feed

Select the types of activity you want to include in your feed.

objtool: Warn when disabling unreachable warnings

Print a warning when disabling the unreachable warnings (due to a GCC
bug). This will help determine if recent GCCs still have the issue and
alert us if any other issues might be silently lurking behind the
unreachable disablement.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/df243063787596e6031367e6659e7e43409d6c6d.1742852846.git.jpoimboe@kernel.org

authored by

Josh Poimboeuf and committed by
Ingo Molnar
eeff7ac6 ef753d66

+4 -1
+4 -1
tools/objtool/arch/x86/special.c
··· 3 3 4 4 #include <objtool/special.h> 5 5 #include <objtool/builtin.h> 6 + #include <objtool/warn.h> 6 7 7 8 #define X86_FEATURE_POPCNT (4 * 32 + 23) 8 9 #define X86_FEATURE_SMAP (9 * 32 + 20) ··· 157 156 * indicates a rare GCC quirk/bug which can leave dead 158 157 * code behind. 159 158 */ 160 - if (reloc_type(text_reloc) == R_X86_64_PC32) 159 + if (reloc_type(text_reloc) == R_X86_64_PC32) { 160 + WARN_INSN(insn, "ignoring unreachables due to jump table quirk"); 161 161 file->ignore_unreachables = true; 162 + } 162 163 163 164 *table_size = 0; 164 165 return rodata_reloc;