Skip to content

Commit 4787d70

Browse files
dgarskedanielinux
authored andcommitted
Fix to force alignment on the flash header copy (hdr_cpy). Caused issues using wolfBoot as static library on Renesas RX.
1 parent 487efc6 commit 4787d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static uint8_t *get_sha_block(struct wolfBoot_image *img, uint32_t offset)
837837
}
838838

839839
#ifdef EXT_FLASH
840-
static uint8_t hdr_cpy[IMAGE_HEADER_SIZE];
840+
static uint8_t XALIGNED(4) hdr_cpy[IMAGE_HEADER_SIZE];
841841
static int hdr_cpy_done = 0;
842842

843843
/**

0 commit comments

Comments
 (0)