LINK_WARNING(): added
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 8 Apr 2004 06:03:29 +0000 (06:03 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 8 Apr 2004 06:03:29 +0000 (06:03 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1437 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/compat.h

index 7f9cd9d..a7d7ab7 100644 (file)
 #  define CONST
 #endif
 
+  // shamelessly stolen from dietlibc
+#define LINK_WARNING(symbol,msg)                                       \
+  __asm__ (".section .gnu.warning." symbol "\n\t.string \"" msg "\"\n\t.previous")
+
 #if !defined(__builtin_expect) && (__GNUC__+0)<3
 #  define __builtin_expect(foo,bar)    (foo)
 #endif