Yu-Ping Wu has uploaded this change for review.
commonlib/bsd/compiler.h: Define __section(section) macro
Define __section(section) to be a shorthand for
__attribute__((__section__(section))).
Change-Id: I67a37e5b2aae0bfa68b0319c477ab5d6c55e6501
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
---
M src/commonlib/bsd/include/commonlib/bsd/compiler.h
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/80137/1
diff --git a/src/commonlib/bsd/include/commonlib/bsd/compiler.h b/src/commonlib/bsd/include/commonlib/bsd/compiler.h
index 6bde28d..2d77c49 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/compiler.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/compiler.h
@@ -50,6 +50,10 @@
#define __noreturn __attribute__((__noreturn__))
#endif
+#ifndef __section
+#define __section(section) __attribute__((__section__(section)))
+#endif
+
#ifndef __always_inline
#define __always_inline inline __attribute__((__always_inline__))
#endif
To view, visit change 80137. To unsubscribe, or for help writing mail filters, visit settings.