diff options
author | Matt Helsley <mhelsley@vmware.com> | 2020-05-30 00:01:14 +0300 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-06-02 23:37:04 +0300 |
commit | fb414783b65c880606fbc1463e6849f017e60d46 (patch) | |
tree | 4ef03afe48b53750973bafe70a2f608534cd9647 /tools/objtool/orc_gen.c | |
parent | f1974222634010486c1692e843af0ab11304dd2c (diff) | |
download | linux-fb414783b65c880606fbc1463e6849f017e60d46.tar.xz |
objtool: Add support for relocations without addends
Currently objtool only collects information about relocations with
addends. In recordmcount, which we are about to merge into objtool,
some supported architectures do not use rela relocations.
Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Reviewed-by: Julien Thierry <jthierry@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/orc_gen.c')
-rw-r--r-- | tools/objtool/orc_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/orc_gen.c b/tools/objtool/orc_gen.c index 93c720baea66..75e08cf0709b 100644 --- a/tools/objtool/orc_gen.c +++ b/tools/objtool/orc_gen.c @@ -181,7 +181,7 @@ int create_orc_sections(struct objtool_file *file) if (!sec) return -1; - ip_relocsec = elf_create_reloc_section(file->elf, sec); + ip_relocsec = elf_create_reloc_section(file->elf, sec, SHT_RELA); if (!ip_relocsec) return -1; |