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: Simplify reloc offset calculation in unwind_read_hints()

Simplify the relocation offset calculation in unwind_read_hints(),
similar to other conversions which have already been done.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

+1 -8
+1 -8
tools/objtool/check.c
··· 2200 2200 return -1; 2201 2201 } 2202 2202 2203 - if (is_sec_sym(reloc->sym)) { 2204 - offset = reloc_addend(reloc); 2205 - } else if (reloc->sym->local_label) { 2206 - offset = reloc->sym->offset; 2207 - } else { 2208 - ERROR("unexpected relocation symbol type in %s", sec->rsec->name); 2209 - return -1; 2210 - } 2203 + offset = reloc->sym->offset + reloc_addend(reloc); 2211 2204 2212 2205 insn = find_insn(file, reloc->sym->sec, offset); 2213 2206 if (!insn) {