Musl libc provides runtime support for SafeStack, so the default
SafeStack library from compiler-rt is not needed.
Details
- Reviewers
delena eugenis craig.topper
Diff Detail
- Build Status
Buildable 954 Build 954: arc lint + arc unit
Event Timeline
Test, please.
Where is this runtime support implemented? Some platform's libc, or an external library?
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.
Please add dependencies to Differential revisions, so reasons for holding will be clear.
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.