When vmlinux.o is built with -fasynchronous-unwind-tables and CONFIG_X86_KERNEL_IBT=y, .eh_frame FDE headers contain PC-relative relocations referencing function start addresses across .text. Because .eh_frame is read-only unwind metadata rather than executable code or indirect branch targets, skip .eh_frame* sections during objtool's IBT relocation validation alongside .orc_unwind_ip and DWARF .debug_* sections. Signed-off-by: Ian Rogers --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 931c5c412f15..e631b0da9bad 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -4644,6 +4644,7 @@ static int validate_ibt(struct objtool_file *file) if ((!strncmp(sec->name, ".discard", 8) && strcmp(sec->name, ".discard.ibt_endbr_noseal")) || !strncmp(sec->name, ".debug", 6) || + !strncmp(sec->name, ".eh_frame", 9) || !strcmp(sec->name, ".altinstructions") || !strcmp(sec->name, ".ibt_endbr_seal") || !strcmp(sec->name, ".kcfi_traps") || -- 2.56.1.831.g720f3f5937-goog