objtool: Slice up elf_create_section_symbol()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 28 Oct 2022 13:49:26 +0000 (15:49 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Nov 2022 12:44:08 +0000 (13:44 +0100)
commit4c91be8e926c6b3734d59b9348e305431484d42b
tree0115efd918c1fcda3db338e068d1e2bdeb98d838
parent5ebddd7c4951c50142bcb239d4c6a82eff15759e
objtool: Slice up elf_create_section_symbol()

In order to facilitate creation of more symbol types, slice up
elf_create_section_symbol() to extract a generic helper that deals
with adding ELF symbols.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Yujie Liu <yujie.liu@intel.com>
Link: https://lkml.kernel.org/r/20221028194453.396634875@infradead.org
tools/objtool/elf.c