aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2024-10-18 12:15:23 -0400
committerIan McIntyre <me@mciantyre.dev>2024-10-18 12:17:35 -0400
commit80b9ea634a8e5d6094ef7fe22cb7f75d69e288b7 (patch)
tree4dff856258a8ecaadb400efee4fdbd1185a26eb5
parent539f887dcd039f4f25e9f34021d0b60a30a084cd (diff)
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.
-rw-r--r--tests/inspect_elf.rs2
1 files changed, 1 insertions, 1 deletions
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"));