<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang generates incorrect code with simultaneously turned on cfi and bti"
   href="https://bugs.llvm.org/show_bug.cgi?id=48845">48845</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang generates incorrect code with simultaneously turned on cfi and bti
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>11.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>qwertytmp1@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It was found that Clang generates cfi jumptables without a landing pad ("bti"
instructions) at the beginning, even in case when the code was compiled with
"-mbranch-protection=bti".

Latest Clang 11.0.1 from:
- <a href="https://releases.llvm.org/download.html">https://releases.llvm.org/download.html</a>
was used to check this issue.

At the same time, it seems that the following patch:
- <a href="https://reviews.llvm.org/D81251">https://reviews.llvm.org/D81251</a>
solves the problem.

Probably to solve this issue the mentioned patch
(<a href="https://reviews.llvm.org/D81251">https://reviews.llvm.org/D81251</a>)
is need be taken for the next Clang release.</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>