aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-08-10 11:04:12 -0500
committerLuiz Capitulino <lcapitulino@redhat.com>2012-08-13 16:10:18 -0300
commit6ee373a0032b8fa6b630c6df9cd6618a7a02902b (patch)
tree460f3640d93f7d65a522a5efb42e2186ec1c25ba
parent01d3c80d6876c7de6b07bee92b1b2440b48e60c9 (diff)
downloadqemu-6ee373a0032b8fa6b630c6df9cd6618a7a02902b.zip
qemu-6ee373a0032b8fa6b630c6df9cd6618a7a02902b.tar.gz
qemu-6ee373a0032b8fa6b630c6df9cd6618a7a02902b.tar.bz2
compiler: add macro for GCC weak symbols
This lets us provide a default implementation of a symbol which targets can override. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
-rw-r--r--compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
index 736e770..f76921e 100644
--- a/compiler.h
+++ b/compiler.h
@@ -45,6 +45,7 @@
# define GCC_ATTR __attribute__((__unused__, format(gnu_printf, 1, 2)))
# define GCC_FMT_ATTR(n, m) __attribute__((format(gnu_printf, n, m)))
# endif
+#define GCC_WEAK __attribute__((weak))
#else
#define GCC_ATTR /**/
#define GCC_FMT_ATTR(n, m)