Skip to content

Fixed unaligned access report by user (Cortex-A5)#581

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
danielinux:cortex_a_no_unaligned_access
Jul 8, 2025
Merged

Fixed unaligned access report by user (Cortex-A5)#581
dgarske merged 1 commit intowolfSSL:masterfrom
danielinux:cortex_a_no_unaligned_access

Conversation

@danielinux
Copy link
Copy Markdown
Member

As reported in ZD 20152, this flag is needed to prevent unaligned access when running integrity check.

@danielinux danielinux requested review from Copilot and dgarske July 8, 2025 11:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces the -mno-unaligned-access compiler flag for Cortex-A5 builds to prevent unaligned memory accesses during integrity checks (ZD 20152).

  • Adds the -mno-unaligned-access flag to CFLAGS when CORTEX_A5=1.
  • Retains existing static linking and no-exec-stack settings.
Comments suppressed due to low confidence (1)

arch.mk:276

  • Consider adding a brief comment above this flag explaining why -mno-unaligned-access is required (e.g., reference ZD 20152 and the integrity-check context) to aid future maintainers.
		  -mno-unaligned-access

@danielinux

This comment was marked as resolved.

@dgarske dgarske merged commit 0bfb8a0 into wolfSSL:master Jul 8, 2025
262 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.

3 participants