diff options
| author | Ian McIntyre <ianpmcintyre@gmail.com> | 2023-03-13 09:38:22 -0400 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-11-11 08:24:39 -0500 |
| commit | 3a6bbd912c92c277611c7cea5780eb9afb04e451 (patch) | |
| tree | d919036ea1ff8c62a1891eabcb92878de2b7a95f /tests/inspect_elf.rs | |
| parent | 6f5633761528e484e8d0963c7ac59403f7210093 (diff) | |
Assert that the reset handler is in the binary
Diffstat (limited to 'tests/inspect_elf.rs')
| -rw-r--r-- | tests/inspect_elf.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/inspect_elf.rs b/tests/inspect_elf.rs index 9c20111..f04f8f5 100644 --- a/tests/inspect_elf.rs +++ b/tests/inspect_elf.rs @@ -328,6 +328,7 @@ fn imxrt1010evk() { 0x6000_0000 < increment_data_xip && increment_data_xip < 0x7000_0000, "increment_data is not XiP" ); + assert!(binary.symbol("Reset").is_some()); } #[test] @@ -433,6 +434,7 @@ fn imxrt1010evk_ram() { ); assert_eq!(heap.size, 1024); assert_eq!(binary.section_lma(".heap"), heap.address, "Heap is NOLOAD"); + assert!(binary.symbol("Reset").is_some()); } fn baseline_teensy4(binary: &ImxrtBinary, dcd_at_runtime: u32, stack_size: u64, heap_size: u64) { @@ -556,6 +558,7 @@ fn baseline_teensy4(binary: &ImxrtBinary, dcd_at_runtime: u32, stack_size: u64, 0x6000_0000 < increment_data_xip && increment_data_xip < 0x7000_0000, "increment_data is not XiP" ); + assert!(binary.symbol("Reset").is_some()); } #[test] @@ -771,6 +774,7 @@ fn imxrt1170evk_cm7() { 0x3000_0000 < increment_data_xip && increment_data_xip < 0x4000_0000, "increment_data is not XiP" ); + assert!(binary.symbol("Reset").is_some()); } #[test] @@ -902,4 +906,5 @@ fn imxrt1170evk_cm7_nonboot() { "0 byte heap in DTCM behind rodata table" ); assert_eq!(binary.section_lma(".heap"), heap.address, "Heap is NOLOAD"); + assert!(binary.symbol("Reset").is_some()); } |
