Hi Carlos,
The TS build system will pass the value of the NEWLIB_CFLAGS_TARGET environment variable as extra compilation switches to newlib build. Alternatively a cmake cache variable with the same name can be set on the command line using -D NEWLIB_CFLAGS_TARGET =<value>.
/George
From: Carlos Liu via Trusted-services trusted-services@lists.trustedfirmware.org Date: Thursday, 14 March 2024 at 12:52 To: trusted-services@lists.trustedfirmware.org trusted-services@lists.trustedfirmware.org Subject: [Trusted-services] Built-in new lib does not include -mstrict-align gcc compile option Hi trusted service We can run a trusted service at S-EL1 with Hafnium based on trusted service project 1.0.0 library (libsp.a and libc.a) but we found that could cause unalignment stack access trap when call into newlib C library, it is because that you don't add -mstrict-align compile option while compile newlib project, could you add this compile option when you start to build newlib?
Thanks Carlos -- Trusted-services mailing list -- trusted-services@lists.trustedfirmware.org To unsubscribe send an email to trusted-services-leave@lists.trustedfirmware.org