diff options
Diffstat (limited to 'tools/objtool/check.c')
| -rw-r--r-- | tools/objtool/check.c | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index a5770570b106..9004fbc06769 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -217,6 +217,7 @@ static bool is_rust_noreturn(const struct symbol *func)  	 * these come from the Rust standard library).  	 */  	return str_ends_with(func->name, "_4core5sliceSp15copy_from_slice17len_mismatch_fail")		|| +	       str_ends_with(func->name, "_4core6option13expect_failed")				||  	       str_ends_with(func->name, "_4core6option13unwrap_failed")				||  	       str_ends_with(func->name, "_4core6result13unwrap_failed")				||  	       str_ends_with(func->name, "_4core9panicking5panic")					|| @@ -3515,8 +3516,11 @@ static bool skip_alt_group(struct instruction *insn)  {  	struct instruction *alt_insn = insn->alts ? insn->alts->insn : NULL; +	if (!insn->alt_group) +		return false; +  	/* ANNOTATE_IGNORE_ALTERNATIVE */ -	if (insn->alt_group && insn->alt_group->ignore) +	if (insn->alt_group->ignore)  		return true;  	/* @@ -4710,8 +4714,8 @@ static int check_abs_references(struct objtool_file *file)  		for_each_reloc(sec->rsec, reloc) {  			if (arch_absolute_reloc(file->elf, reloc)) { -				WARN("section %s has absolute relocation at offset 0x%lx", -				     sec->name, reloc_offset(reloc)); +				WARN("section %s has absolute relocation at offset 0x%llx", +				     sec->name, (unsigned long long)reloc_offset(reloc));  				ret++;  			}  		}  | 
