summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Feng <fenghua@phytium.com.cn>2013-12-14 03:47:31 (GMT)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-01-09 15:08:15 (GMT)
commitec4fa56743a3534c4bace2c9c72ea36b9d41000c (patch)
tree32dd0c99ffa5e47a1371c07372d0b2cd247b79c3 /include
parent5cea95cb53c7192c3ab9cb61634fa1a1f33649f4 (diff)
downloadu-boot-fsl-qoriq-ec4fa56743a3534c4bace2c9c72ea36b9d41000c.tar.xz
add weak entry definition
Signed-off-by: David Feng <fenghua@phytium.com.cn>
Diffstat (limited to 'include')
-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