wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

PPC32 SHA-256 ASM: support comnpiling for PIC

Open SparkiDev opened this issue 1 month ago • 3 comments

Description

When compiling for PIC, 30 and 31 are not always available. Alternative implementation added not using them that puts registers on the stack. Small code size version implemented as well.

Fixes #9023

Testing

./configure --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm=inline CFLAGS=-fPIC ./configure --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm=inline,small CFLAGS=-fPIC ./configure --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm CFLAGS=-fPIC ./configure --host=powerpc CC=powerpc-linux-gnu-gcc --enable-ppc32-asm=small CFLAGS=-fPIC

Checklist

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

SparkiDev avatar Dec 10 '25 05:12 SparkiDev

Code generated from scripts updated by: https://github.com/wolfSSL/scripts/pull/528

SparkiDev avatar Dec 10 '25 05:12 SparkiDev

🛟 Devin Lifeguard found 1 likely issues in this PR

  • no-void-functions snippet snippet: Change Transform_Sha256_Len to return an appropriate error/status code (e.g., int Transform_Sha256_Len(...)) and make all call-sites handle and propagate this value.

@SparkiDev please take a look at the above issues which Devin flagged. Devin will not fix these issues automatically.

retest this please

generic: org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException: Unable to create live FilePath for wolf-linux-cloud-node-bciyus; wolf-linux-cloud-node-bciyus was marked offline: Connection was broken

SparkiDev avatar Dec 10 '25 06:12 SparkiDev