summaryrefslogtreecommitdiffstats
path: root/tools/objtool/weak.c
diff options
context:
space:
mode:
authorJulien Thierry <jthierry@redhat.com>2020-09-04 17:30:22 +0200
committerJosh Poimboeuf <jpoimboe@redhat.com>2020-09-10 17:43:13 +0200
commiteda3dc905834dc9c99132f987f77b68cf53a8682 (patch)
treecfbdd2d47ee9f477ff25f80518cfd6071e87b2d6 /tools/objtool/weak.c
parentobjtool: Move macros describing structures to arch-dependent code (diff)
downloadlinux-eda3dc905834dc9c99132f987f77b68cf53a8682.tar.xz
linux-eda3dc905834dc9c99132f987f77b68cf53a8682.zip
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/weak.c')
-rw-r--r--tools/objtool/weak.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/objtool/weak.c b/tools/objtool/weak.c
index 29180d599b08..7843e9a7a72f 100644
--- a/tools/objtool/weak.c
+++ b/tools/objtool/weak.c
@@ -9,8 +9,6 @@
#include <errno.h>
#include "objtool.h"
-#define __weak __attribute__((weak))
-
#define UNSUPPORTED(name) \
({ \
fprintf(stderr, "error: objtool: " name " not implemented\n"); \