[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [UNIKRAFT PATCH] include: Provide `__unalign` attribute
Provide `__unalign` attribute in `<uk/essentials.h>`. It is defined as byte-alignment. Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx> --- include/uk/essentials.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uk/essentials.h b/include/uk/essentials.h index a6d969e7..6989c970 100644 --- a/include/uk/essentials.h +++ b/include/uk/essentials.h @@ -90,6 +90,9 @@ extern "C" { #ifndef __align #define __align(bytes) __attribute__((aligned(bytes))) #endif +#ifndef __unalign +#define __unalign __align(1) +#endif /* NOTE: weak aliasing does not work well with link-time optimization * currently. Hopefully this will be fixed in gcc 9. The problem is, * if a weak symbol is referenced in the library, gcc resolves calls -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |