Skip to content

Commit

Permalink
Fix over-aligned test assertion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mciantyre committed Oct 18, 2024
1 parent 539f887 commit 80b9ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/inspect_elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 80b9ea6

Please sign in to comment.