<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Windows stack guard needs to XOR the stack pointer with __stack_cookie"
   href="https://bugs.llvm.org/show_bug.cgi?id=35449">bug 35449</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Windows stack guard needs to XOR the stack pointer with __stack_cookie"
   href="https://bugs.llvm.org/show_bug.cgi?id=35449#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Windows stack guard needs to XOR the stack pointer with __stack_cookie"
   href="https://bugs.llvm.org/show_bug.cgi?id=35449">bug 35449</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>r319490 was not reverted, so this is fixed. Now we get XOR RSP instructions as
expected:

$ clang-cl -O2 -GS t2.c -Fat.s -c && grep -B1 -A2 security t.s
        .seh_endprologue
        movq    __security_cookie(%rip), %rax
        xorq    %rsp, %rax
        movq    %rax, 96(%rsp)
--
        xorq    %rsp, %rcx
        callq   __security_check_cookie
        nop
        addq    $104, %rsp</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>