add weak entry definition
authorDavid Feng <fenghua@phytium.com.cn>
Sat, 14 Dec 2013 03:47:31 +0000 (11:47 +0800)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 9 Jan 2014 15:08:15 +0000 (16:08 +0100)
Signed-off-by: David Feng <fenghua@phytium.com.cn>
include/linux/linkage.h

index 39c712eac5b912b6cd2bd1ece7abf17213125552..7435fcd0262bd4770159e1bd3ebf6d5a9444a54f 100644 (file)
        .globl SYMBOL_NAME(name); \
        LENTRY(name)
 
+#define WEAK(name) \
+       .weak SYMBOL_NAME(name); \
+       LENTRY(name)
+
 #ifndef END
 #define END(name) \
        .size name, .-name