+156
−14
Loading
elf_create_rela_section() is quite limited in that it requires the caller to know how many relocations need to be allocated up front. In preparation for the objtool klp diff subcommand, allow an arbitrary number of relocations to be created and initialized on demand after section creation. Acked-by:Petr Mladek <pmladek@suse.com> Tested-by:
Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by:
Josh Poimboeuf <jpoimboe@kernel.org>