aboutsummaryrefslogtreecommitdiffstats
path: root/tools/objtool/objtool.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-12-11 17:48:50 +0000
committerMark Brown <broonie@kernel.org>2020-12-11 17:48:50 +0000
commit58f7553fa424fd0fd74e8b796d50c66014cebebe (patch)
tree8aecb1d047b1df2abbfa1ef323d2a724a6a61c77 /tools/objtool/objtool.h
parentMerge remote-tracking branch 'spi/for-5.9' into spi-linus (diff)
parentspi: Limit the spi device max speed to controller's max speed (diff)
downloadlinux-58f7553fa424fd0fd74e8b796d50c66014cebebe.tar.gz
linux-58f7553fa424fd0fd74e8b796d50c66014cebebe.zip
Merge remote-tracking branch 'spi/for-5.10' into spi-linus
Diffstat (limited to 'tools/objtool/objtool.h')
-rw-r--r--tools/objtool/objtool.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/objtool/objtool.h b/tools/objtool/objtool.h
index 528028a66816..4125d4578b23 100644
--- a/tools/objtool/objtool.h
+++ b/tools/objtool/objtool.h
@@ -12,14 +12,19 @@
#include "elf.h"
+#define __weak __attribute__((weak))
+
struct objtool_file {
struct elf *elf;
struct list_head insn_list;
DECLARE_HASHTABLE(insn_hash, 20);
+ struct list_head static_call_list;
bool ignore_unreachables, c_file, hints, rodata;
};
-int check(const char *objname, bool orc);
+struct objtool_file *objtool_open_read(const char *_objname);
+
+int check(struct objtool_file *file);
int orc_dump(const char *objname);
int create_orc(struct objtool_file *file);
int create_orc_sections(struct objtool_file *file);