[llvm-bugs] [Bug 34831] New: Allow to select the segment and offset of the stack canary
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 4 11:09:26 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34831
Bug ID: 34831
Summary: Allow to select the segment and offset of the stack
canary
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: thgarnie at google.com
CC: llvm-bugs at lists.llvm.org
Mirror the behaviour from gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81708
The Linux and Zircon/Magenta kernel is moving to PIE code generation on x86. It
means using -fPIE and removing -mcmodel=kernel. The problem is that
-mcmodel=kernel is used to switch the TLS segment from fs to gs (for stack
cookie or stack-guard on clang).
Gcc went for this format and using the same would be useful:
-mstack-protector-guard-reg=%fs -mstack-protector-guard-offset=0x200
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171004/fe143ecc/attachment.html>
More information about the llvm-bugs
mailing list