34 _Pragma(
"GCC diagnostic ignored \"-Warray-bounds\"")
42 #define _XFA(type, name, prio) \
44 __attribute__((used, section(".xfa." #name "." #prio))) _Alignas(type) type
51 #define _XFA_CONST(type, name, prio) \
53 __attribute__((used, section(".roxfa." #name "." #prio))) _Alignas(type) type
69 #define XFA_INIT_CONST(type, name) \
70 _Pragma("GCC diagnostic push") \
71 _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
72 _XFA_CONST(type, name, 0_) name [0] = {}; \
73 _XFA_CONST(type, name, 9_) name ## _end [0] = {}; \
74 _Pragma("GCC diagnostic pop") \
75 extern const unsigned __xfa_dummy
91 #define XFA_INIT(type, name) \
92 _Pragma("GCC diagnostic push") \
93 _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
94 _XFA(type, name, 0_) name [0] = {}; \
95 _XFA(type, name, 9_) name ## _end [0] = {}; \
96 _Pragma("GCC diagnostic pop") \
97 extern const unsigned __xfa_dummy
110 #define XFA_USE_CONST(type, name) \
124 #define XFA_USE(type, name) \
125 extern type name []; \
126 extern type name ## _end []
141 #define XFA(type, xfa_name, prio) _XFA(type, xfa_name, 5_ ## prio)
156 #define XFA_CONST(type, xfa_name, prio) _XFA_CONST(type, xfa_name, 5_ ## prio)
174 #define XFA_ADD_PTR(xfa_name, prio, name, entry) \
175 _XFA_CONST(__typeof__(entry), xfa_name, 5_ ## prio) \
176 xfa_name ## _ ## prio ## _ ## name = entry
181 #define XFA_LEN(type, \
182 name) (((uintptr_t)name ## _end - (uintptr_t)name) / \
Common macros and compiler attributes/pragmas configuration.
Adds include for missing inttype definitions.