[PATCH] D19170: [safestack] Link SafeStack runtime only when not using separate stack segment

Michael LeMay via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 14:33:52 PDT 2016


mlemay-intel added a comment.

In http://reviews.llvm.org/D19170#402861, @eugenis wrote:

> Test, please.


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.


http://reviews.llvm.org/D19170





More information about the cfe-commits mailing list