[U-Boot] [PATCH v15 03/10] add weak entry definition

fenghua at phytium.com.cn fenghua at phytium.com.cn
Fri Nov 15 04:45:52 CET 2013


From: David Feng <fenghua at phytium.com.cn>

Signed-off-by: David Feng <fenghua at phytium.com.cn>
---
 include/linux/linkage.h |    4 ++++
 1 file changed, 4 insertions(+)

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
-- 
1.7.9.5




More information about the U-Boot mailing list