This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81708] The x86 stack canary location should be customizable
- From: "hpa at zytor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Aug 2017 17:24:52 +0000
- Subject: [Bug target/81708] The x86 stack canary location should be customizable
- Auto-submitted: auto-generated
- References: <bug-81708-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81708
--- Comment #8 from H. Peter Anvin <hpa at zytor dot com> ---
How about simply letting the user enter an assembly expression of neither of
the standard ABI options are suitable? Also, shouldn't the user space default
on 64 bits be an offset into the TLS using %fs, or is there something magic
about how the kernel is compiled that changes it to %gs:?