Commit ce1831fe authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger

um: add __weak for exported functions

If the exported glibc functions don't exist, we get link
failures. Avoid that by adding __weak so they're allowed
to not exist.
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7e364e56
...@@ -39,7 +39,7 @@ EXPORT_SYMBOL(printf); ...@@ -39,7 +39,7 @@ EXPORT_SYMBOL(printf);
* good; so the versions of these symbols will always match * good; so the versions of these symbols will always match
*/ */
#define EXPORT_SYMBOL_PROTO(sym) \ #define EXPORT_SYMBOL_PROTO(sym) \
int sym(void); \ int sym(void) __weak; \
EXPORT_SYMBOL(sym); EXPORT_SYMBOL(sym);
extern void readdir64(void) __attribute__((weak)); extern void readdir64(void) __attribute__((weak));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment