From 39f174908fe176a2f1ad60eaf1c978652a00511f Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Tue, 31 May 2022 15:40:50 +0200 Subject: [PATCH] tools/gencromfs: add attribute to set minimum 4 bytes aignment for cromfs image data Signed-off-by: Petro Karashchenko --- tools/gencromfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gencromfs.c b/tools/gencromfs.c index b603d1ef0a..55189cb91f 100644 --- a/tools/gencromfs.c +++ b/tools/gencromfs.c @@ -1302,7 +1302,7 @@ int main(int argc, char **argv, char **envp) /* Now append the volume header to output file */ fprintf(g_outstream, "/* CROMFS image */\n\n"); - fprintf(g_outstream, "const uint8_t g_cromfs_image[] =\n"); + fprintf(g_outstream, "const uint8_t aligned_data(4) g_cromfs_image[] =\n"); fprintf(g_outstream, "{\n"); fprintf(g_outstream, " /* Offset %6lu: Volume header */\n\n", 0ul);