mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
Merge tag 'core-urgent-2023-01-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fix from Ingo Molnar: - Fix objtool to be more permissive with hand-written assembly that uses non-function symbols in executable sections. * tag 'core-urgent-2023-01-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Tolerate STT_NOTYPE symbols at end of section
This commit is contained in:
@@ -427,6 +427,15 @@ static int decode_instructions(struct objtool_file *file)
|
||||
if (func->type != STT_NOTYPE && func->type != STT_FUNC)
|
||||
continue;
|
||||
|
||||
if (func->offset == sec->sh.sh_size) {
|
||||
/* Heuristic: likely an "end" symbol */
|
||||
if (func->type == STT_NOTYPE)
|
||||
continue;
|
||||
WARN("%s(): STT_FUNC at end of section",
|
||||
func->name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (func->return_thunk || func->alias != func)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user