diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-26 18:12:08 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-04-02 13:44:37 +0300 |
commit | d0c5c4cc73da0b05b0d9e5f833f2d859e1b45f8e (patch) | |
tree | b9f0b2e78272ec8b314572c802645a87138535fa /tools/objtool/check.c | |
parent | ef47cc01cb4abcd760d8ac66b9361d6ade4d0846 (diff) | |
download | linux-d0c5c4cc73da0b05b0d9e5f833f2d859e1b45f8e.tar.xz |
objtool: Create reloc sections implicitly
Have elf_add_reloc() create the relocation section implicitly.
Suggested-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151259.880174448@infradead.org
Diffstat (limited to 'tools/objtool/check.c')
-rw-r--r-- | tools/objtool/check.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 61fe29ae4cd4..600fa67153d3 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -459,9 +459,6 @@ static int create_static_call_sections(struct objtool_file *file) if (!sec) return -1; - if (!elf_create_reloc_section(file->elf, sec, SHT_RELA)) - return -1; - idx = 0; list_for_each_entry(insn, &file->static_call_list, static_call_node) { @@ -547,9 +544,6 @@ static int create_mcount_loc_sections(struct objtool_file *file) if (!sec) return -1; - if (!elf_create_reloc_section(file->elf, sec, SHT_RELA)) - return -1; - idx = 0; list_for_each_entry(insn, &file->mcount_loc_list, mcount_loc_node) { |