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: unassignedb...@nondot.org
          Reporter: thgar...@google.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to