Skip to content

Force 4 byte alignment for all Arm functions - #219

Merged
jonathanpallant merged 2 commits into
rust-embedded:mainfrom
thejpster:force-asm-function-alignment
Sep 4, 2026
Merged

Force 4 byte alignment for all Arm functions#219
jonathanpallant merged 2 commits into
rust-embedded:mainfrom
thejpster:force-asm-function-alignment

Conversation

@thejpster

@thejpster thejpster commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

I was seeing an Arm function with 2 byte alignment, which caused a prefetch abort. Now they are all forced to 4 byte alignment.

Also I observed that Rust was assembling all global_asm functions as A32 even on a "thumb*" target. So I've expressly marked them all as ".arm" to avoid surprise.

Fixes #214

I was seeing an Arm function with 2 byte alignment, which caused a
prefetch abort. Now they are all forced to 4 byte alignment.

Also I observed that Rust was assembling all global_asm functions as A32
even on a "thumb*" target. So I've expressly marked them all as ".arm"
to avoid surprise.
@adamgreig
adamgreig added this pull request to the merge queue Sep 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 1, 2026
@jonathanpallant
jonathanpallant added this pull request to the merge queue Sep 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 1, 2026
@jonathanpallant
jonathanpallant merged commit c5effd3 into rust-embedded:main Sep 4, 2026
90 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thumbv4t-none-eabi target doesn't work

3 participants