objtool: Check for gelf_update_rel[a] failures
authorMichael Forney <mforney@mforney.org>
Sun, 9 May 2021 00:01:02 +0000 (17:01 -0700)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 7 Oct 2021 03:11:53 +0000 (20:11 -0700)
commitb46179d6bb3182c020f2bf9bb4df6ba5463b0495
treede98f978538eca9118136ffbbaf7288c17d57710
parentfe255fe6ad97685e5a4be0d871f43288dbc10ad6
objtool: Check for gelf_update_rel[a] failures

Otherwise, if these fail we end up with garbage data in the
.rela.orc_unwind_ip section, leading to errors like

  ld: fs/squashfs/namei.o: bad reloc symbol index (0x7f16 >= 0x12) for offset 0x7f16d5c82cc8 in section `.orc_unwind_ip'

Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20210509000103.11008-1-mforney@mforney.org
tools/objtool/elf.c