summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Feng <fenghua@phytium.com.cn>2013-12-14 11:47:31 +0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-01-09 16:08:15 +0100
commitec4fa56743a3534c4bace2c9c72ea36b9d41000c (patch)
tree32dd0c99ffa5e47a1371c07372d0b2cd247b79c3
parent5cea95cb53c7192c3ab9cb61634fa1a1f33649f4 (diff)
downloadu-boot-imx-ec4fa56743a3534c4bace2c9c72ea36b9d41000c.zip
u-boot-imx-ec4fa56743a3534c4bace2c9c72ea36b9d41000c.tar.gz
u-boot-imx-ec4fa56743a3534c4bace2c9c72ea36b9d41000c.tar.bz2
add weak entry definition
Signed-off-by: David Feng <fenghua@phytium.com.cn>
-rw-r--r--include/linux/linkage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index 39c712e..7435fcd 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -48,6 +48,10 @@
.globl SYMBOL_NAME(name); \
LENTRY(name)
+#define WEAK(name) \
+ .weak SYMBOL_NAME(name); \
+ LENTRY(name)
+
#ifndef END
#define END(name) \
.size name, .-name