diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-12-18 00:02:42 +0300 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-01-14 18:53:42 +0300 |
commit | ab4e0744e99b87e1a223e89fc3c9ae44f727c9a6 (patch) | |
tree | 470912764110ac2a157be0e8a5a79832b62eeaad /tools/objtool/builtin-orc.c | |
parent | 5ed934e57e712b676ca62e1904ad672a9fa1505a (diff) | |
download | linux-ab4e0744e99b87e1a223e89fc3c9ae44f727c9a6.tar.xz |
objtool: Refactor ORC section generation
Decouple ORC entries from instructions. This simplifies the
control/data flow, and is going to make it easier to support alternative
instructions which change the stack layout.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/builtin-orc.c')
-rw-r--r-- | tools/objtool/builtin-orc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/objtool/builtin-orc.c b/tools/objtool/builtin-orc.c index 6745f3328a0e..8273bbf7cebb 100644 --- a/tools/objtool/builtin-orc.c +++ b/tools/objtool/builtin-orc.c @@ -51,11 +51,7 @@ int cmd_orc(int argc, const char **argv) if (list_empty(&file->insn_list)) return 0; - ret = create_orc(file); - if (ret) - return ret; - - ret = create_orc_sections(file); + ret = orc_create(file); if (ret) return ret; |