Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM32/Thumb2 ASM: fix WOLFSSL_NO_VAR_ASSIGN_REG #8590

Merged
merged 3 commits into from
Mar 31, 2025

Conversation

SparkiDev
Copy link
Contributor

Description

Thumb2 needed constants defined even with no register assignments. ARM32 needed support added fo rnot having registers assigned to variables.

Testing

./configure --disable-shared LDFLAGS=--static --host=armv7m CC=arm-linux-gnueabi-gcc --enable-armasm=inline
./configure --disable-shared LDFLAGS=--static --host=armv7m CC=arm-linux-gnueabi-gcc --enable-armasm=inline CFLAGS=-DWOLFSSL_NO_VAR_ASSIGN_REG
./configure --disable-shared LDFLAGS=--static --host=armv7a CC=arm-linux-gnueabihf-gcc --enable-armasm=inline

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Sorry, something went wrong.

Thumb2 needed constants defined even with no register assignments.
ARM32 needed support added fo rnot having registers assigned to
variables.
Compiler doesn't keep parameters in the same registers as passed if they
are output registers.
Greenhills compiler doesn't accept volatile and __asm__ needs to be
__asm.
@SparkiDev
Copy link
Contributor Author

retest this please

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Mar 31, 2025
@SparkiDev SparkiDev requested a review from wolfSSL-Bot March 31, 2025 11:42
@JacobBarthelmeh JacobBarthelmeh merged commit 307d746 into wolfSSL:master Mar 31, 2025
185 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.

None yet

4 participants