ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for Arm and AArch64 embedded targets.
Apache License 2.0
419 stars 98 forks source link

Add aarch64_sme_accessible to newlib patch #547

Closed Rin18 closed 1 week ago

Rin18 commented 2 weeks ago

To check for SME support, compiler-rt makes a call to aarch64_sme_accessible(). It expects this symbol to be defined in newlib, which is currently incorrect. This patch extends newlib.patch to add the definition of aarch64_sme_accessible.

Rin18 commented 1 week ago

Could you add some more explanation in the commit message, please?

Who is expecting to call this function? What currently isn't working because it's missing?

Does it have a specification anywhere? Or does another C library implement it, that you're aiming to match the API of?

I've changed the commit message to add more explanation.