summaryrefslogtreecommitdiff
path: root/tools/objtool/weak.c
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2020-12-17 15:02:42 -0600
committerJosh Poimboeuf <jpoimboe@redhat.com>2021-01-14 09:53:42 -0600
commitab4e0744e99b87e1a223e89fc3c9ae44f727c9a6 (patch)
tree470912764110ac2a157be0e8a5a79832b62eeaad /tools/objtool/weak.c
parent5ed934e57e712b676ca62e1904ad672a9fa1505a (diff)
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/weak.c')
-rw-r--r--tools/objtool/weak.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/objtool/weak.c b/tools/objtool/weak.c
index f2716827cc30..8314e824db4a 100644
--- a/tools/objtool/weak.c
+++ b/tools/objtool/weak.c
@@ -25,12 +25,7 @@ int __weak orc_dump(const char *_objname)
UNSUPPORTED("orc");
}
-int __weak create_orc(struct objtool_file *file)
-{
- UNSUPPORTED("orc");
-}
-
-int __weak create_orc_sections(struct objtool_file *file)
+int __weak orc_create(struct objtool_file *file)
{
UNSUPPORTED("orc");
}