summaryrefslogtreecommitdiff
path: root/tools/objtool/objtool.h
diff options
context:
space:
mode:
authorJulien Thierry <jthierry@redhat.com>2020-09-04 18:30:22 +0300
committerJosh Poimboeuf <jpoimboe@redhat.com>2020-09-10 18:43:13 +0300
commiteda3dc905834dc9c99132f987f77b68cf53a8682 (patch)
treecfbdd2d47ee9f477ff25f80518cfd6071e87b2d6 /tools/objtool/objtool.h
parentc8ea0d672521ef663f0f9a77faa94d0d47102d77 (diff)
downloadlinux-eda3dc905834dc9c99132f987f77b68cf53a8682.tar.xz
objtool: Abstract alternative special case handling
Some alternatives associated with a specific feature need to be treated in a special way. Since the features and how to treat them vary from one architecture to another, move the special case handling to arch specific code. Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Julien Thierry <jthierry@redhat.com> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'tools/objtool/objtool.h')
-rw-r--r--tools/objtool/objtool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/objtool/objtool.h b/tools/objtool/objtool.h
index a635f68a9b09..4125d4578b23 100644
--- a/tools/objtool/objtool.h
+++ b/tools/objtool/objtool.h
@@ -12,6 +12,8 @@
#include "elf.h"
+#define __weak __attribute__((weak))
+
struct objtool_file {
struct elf *elf;
struct list_head insn_list;