From 7298eda2ff507c7132b5e7b4d168b5319ad3508f Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Tue, 12 Nov 2019 16:53:04 +0100 Subject: [PATCH] Making sure global variable is 8B aligned as well --- src/utils/list_cpu_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/list_cpu_features.c b/src/utils/list_cpu_features.c index cffc832..55879aa 100644 --- a/src/utils/list_cpu_features.c +++ b/src/utils/list_cpu_features.c @@ -50,7 +50,7 @@ typedef struct { size_t size; } BumpAllocator; -char gGlobalBuffer[64 * 1024]; +__attribute__((aligned(8))) char gGlobalBuffer[64 * 1024]; BumpAllocator gBumpAllocator = {.ptr = gGlobalBuffer, .size = sizeof(gGlobalBuffer)};