Musl libc provides runtime support for SafeStack, so the default
SafeStack library from compiler-rt is not needed.
Do you know of any examples of the sort of test that you would like to see for a feature like this?
Where is this runtime support implemented? Some platform's libc, or an external library?
In my experience, supporting a separate stack segment seems to require a modified libc. The whole program, including libc routines, needs to be recompiled to direct memory accesses to the appropriate segment. This requires setting up an unsafe stack early enough that those recompiled routines can run successfully.
Disabled linking of the compiler-rt SafeStack runtime library for musl
environments rather than for targets that use the separate stack segment
feature. This reflects changes in my proposed musl libc patches to add
architecture-independent support for storing USP in the TCB.