This patch adds an option, -safe-stack-no-tls, for using normal
storage instead of thread-local storage for the unsafe stack pointer.
This can be useful when SafeStack is applied to an operating system
kernel.
Details
Details
- Reviewers
eugenis
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Instrumentation/SafeStack.cpp | ||
---|---|---|
50 | Could you invert the meaning of this option? Negative language makes the code less readable. I.e. make the option _enable_ TLS, with "true" as the default value. |
Comment Actions
Name the option UseTLS instead of NoTLS to improve the readability of the code that checks it.
Comment Actions
I don't have commit access yet, so can you please commit this for me, @eugenis? Thank you.
Comment Actions
I added a test. I also revised the code to use an enumerated command line option instead of a simple Boolean, in case additional types of storage are necessary in the future.
Could you invert the meaning of this option? Negative language makes the code less readable. I.e. make the option _enable_ TLS, with "true" as the default value.