diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-04-17 23:15:00 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-06-18 17:36:33 +0200 |
commit | 2b10be23ac0f8e107fd575397361ddbaebc2944b (patch) | |
tree | 315aa11c90cdba7d5789ddfd9ace91910d5c099b /tools/objtool/orc_gen.c | |
parent | b3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff) |
objtool: Clean up elf_write() condition
With there being multiple ways to change the ELF data, let's more
concisely track modification.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
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 c9549988121a..4c37f80eb987 100644 --- a/tools/objtool/orc_gen.c +++ b/tools/objtool/orc_gen.c @@ -222,7 +222,7 @@ int create_orc_sections(struct objtool_file *file) } } - if (elf_rebuild_rela_section(ip_relasec)) + if (elf_rebuild_rela_section(file->elf, ip_relasec)) return -1; return 0; |