From 80b9ea634a8e5d6094ef7fe22cb7f75d69e288b7 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Fri, 18 Oct 2024 12:15:23 -0400 Subject: Fix over-aligned test assertion There's no requirement for 16 byte-aligned read-only data, and this is the only assertion expecting that requirement. Reducing the requirement lets the test pass when the image is built with a Rust 1.82 toolchain. --- tests/inspect_elf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/inspect_elf.rs b/tests/inspect_elf.rs index 8df4b6a..cdb3245 100644 --- a/tests/inspect_elf.rs +++ b/tests/inspect_elf.rs @@ -250,7 +250,7 @@ fn imxrt1010evk() { let rodata = binary.section(".rodata").unwrap(); assert_eq!( rodata.address, - 0x6000_2000 + vector_table.size + aligned(text.size, 16), + 0x6000_2000 + vector_table.size + aligned(text.size, 4), "rodata LMA & VMA expected behind text" ); assert_eq!(rodata.address, binary.section_lma(".rodata")); -- cgit v1.2.3