[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 2/4] include/essentials: Provide __used, __section macros



Provide attribute macros for marking symbols as used
and for specifying a target section for a symbol to
be placed.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 include/uk/essentials.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/uk/essentials.h b/include/uk/essentials.h
index 44a6232..f6cc6ea 100644
--- a/include/uk/essentials.h
+++ b/include/uk/essentials.h
@@ -52,9 +52,15 @@ extern "C" {
 #ifndef __weak
 #define __weak                 __attribute__((weak))
 #endif
+#ifndef __used
+#define __used                 __attribute__((used))
+#endif
 #ifndef __unused
 #define __unused               __attribute__((unused))
 #endif
+#ifndef __section
+#define __section(s)           __attribute__((section(s)))
+#endif
 #ifndef __nonnull
 #define __nonnull              __attribute__((nonnull))
 #endif
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.