Skip to content

Commit 9804b08

Browse files
committed
Fix to force alignment on the flash header copy (hdr_cpy). Caused issues using wolfBoot as static library on Renesas RX.
1 parent 869f15b commit 9804b08

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
@@ -772,7 +772,7 @@ static uint8_t *get_sha_block(struct wolfBoot_image *img, uint32_t offset)
772772
}
773773

774774
#ifdef EXT_FLASH
775-
static uint8_t hdr_cpy[IMAGE_HEADER_SIZE];
775+
static uint8_t XALIGNED(4) hdr_cpy[IMAGE_HEADER_SIZE];
776776
static int hdr_cpy_done = 0;
777777

778778
/**

0 commit comments

Comments
 (0)