summaryrefslogtreecommitdiffstats
path: root/tools/objtool/check.c
diff options
context:
space:
mode:
authorJulien Thierry <jthierry@redhat.com>2020-08-25 13:47:40 +0100
committerJosh Poimboeuf <jpoimboe@redhat.com>2020-09-01 17:19:11 -0500
commitd44becb9decf4438d1e555b1428634964d2e5764 (patch)
tree51216eb474b58554435a0790ac60305a3ce7d85a /tools/objtool/check.c
parent6545eb030e6f14cef8793a86312483c788eaee46 (diff)
downloadlinux-stable-d44becb9decf4438d1e555b1428634964d2e5764.tar.gz
linux-stable-d44becb9decf4438d1e555b1428634964d2e5764.tar.bz2
linux-stable-d44becb9decf4438d1e555b1428634964d2e5764.zip
objtool: Move ORC logic out of check()
Now that the objtool_file can be obtained outside of the check function, orc generation builtin no longer requires check to explicitly call its orc related functions. Signed-off-by: Julien Thierry <jthierry@redhat.com> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/check.c')
-rw-r--r--tools/objtool/check.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 9d4efa3b12ba..4afc2d5465b9 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -2908,7 +2908,7 @@ static int validate_reachable_instructions(struct objtool_file *file)
return 0;
}
-int check(struct objtool_file *file, bool orc)
+int check(struct objtool_file *file)
{
int ret, warnings = 0;
@@ -2960,22 +2960,6 @@ int check(struct objtool_file *file, bool orc)
goto out;
warnings += ret;
- if (orc) {
- ret = create_orc(file);
- if (ret < 0)
- goto out;
-
- ret = create_orc_sections(file);
- if (ret < 0)
- goto out;
- }
-
- if (file->elf->changed) {
- ret = elf_write(file->elf);
- if (ret < 0)
- goto out;
- }
-
out:
if (ret < 0) {
/*