Skip to content

Add ML-DSA aarch64 native assembly to CC builder scripts#1113

Open
jakemas wants to merge 1 commit into
aws:mainfrom
jakemas:mldsa-native-aarch64-cc-builder
Open

Add ML-DSA aarch64 native assembly to CC builder scripts#1113
jakemas wants to merge 1 commit into
aws:mainfrom
jakemas:mldsa-native-aarch64-cc-builder

Conversation

@jakemas
Copy link
Copy Markdown
Contributor

@jakemas jakemas commented May 5, 2026

Summary

Context

aws/aws-lc#3219 imports the mldsa-native aarch64 backend into aws-lc, adding .S files under crypto/fipsmodule/ml_dsa/mldsa/native/aarch64/src/. The aws-lc-rs CC builder needs to discover these files, otherwise the aws-lc-rs-macos CI job in aws-lc fails with undefined-symbol link errors for aws_lc_*_mldsa_poly_*_asm and friends. This PR unblocks aws/aws-lc#3219.

Changes

  • linux_aarch64.sh: add find for ML-DSA aarch64 assembly
  • apple_aarch64.sh: add find for ML-DSA aarch64 assembly

Note

The generated .rs builder files will need regeneration after the aws-lc submodule is bumped to include the ML-DSA aarch64 backend.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

Discover the `.S` files under
`crypto/fipsmodule/ml_dsa/mldsa/native/aarch64/src/` in the same way
ML-KEM's aarch64 backend and ML-DSA's x86_64 backend (aws#1110) are already
handled. Follows the same pattern as those PRs.

## Context
aws/aws-lc#3219 imports the mldsa-native aarch64 backend into aws-lc,
adding `.S` files under `crypto/fipsmodule/ml_dsa/mldsa/native/aarch64/src/`.
The aws-lc-rs CC builder needs to discover these files, otherwise the
`aws-lc-rs-macos` CI job (and any other cc-builder consumer on aarch64)
fails to link with undefined symbols for the mldsa aarch64 routines.

## Changes
- `linux_aarch64.sh`: add `find` for ML-DSA aarch64 assembly
- `apple_aarch64.sh`: add `find` for ML-DSA aarch64 assembly

## Note
The generated `.rs` builder files will need regeneration after the aws-lc
submodule is bumped to include the ML-DSA aarch64 backend.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (c358484) to head (dc562be).
⚠️ Report is 374 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1113      +/-   ##
==========================================
- Coverage   95.80%   92.59%   -3.21%     
==========================================
  Files          61       71      +10     
  Lines        8143    10177    +2034     
  Branches        0    10177   +10177     
==========================================
+ Hits         7801     9423    +1622     
- Misses        342      459     +117     
- Partials        0      295     +295     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jakemas jakemas requested a review from justsmth May 6, 2026 01:20
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