<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/70339>70339</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            【cfi】 Do we need to turn on cfi for static libraries?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          yinchuang-code
      </td>
    </tr>
</table>

<pre>
    1、Do we need to open cfi for all static libraries that the shared library (which enable cfi)depends on?
2、If a static library has cfi turned on, do we need to turn on cfi for all shared libraries that contain it?

In our practice if we don't open cfi for the static library that the shared library (which enable cfi)depends on, we will have a cfi check failed, the cfi_check don't know the vtable which is exist in the static library
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysktGOoyAUhp8Gb07aIFirF17MtGMyT7FBOJazQ6EBbLdvv9F2utvJZq_mRo0_8H2c_ColOnjEjm1e2WZfqCnbELsreW0n5Q8rHQwWQzDXrmRvkjWcNeU-wAXBIxrIAcIJPeiRYAwRlHOQssqkwdEQVSRMkK3KkC1CsiqiuSdXYG89e92xprlY0hbQq8HhfNRn0Bo8oTcJgmeyZ3zP-It4aLyPoJ5hV7AqLS55ih7NvE_swDz5zhGEL8p_iz2UdfBZkQfKD_rt-e4hTBFOUelMGoHGGWBm2jY_D2S59rPjt4xD7GbkhZwDq84IaiFqi_oDRkUOzbxkpuiRftz-fwp--HBZonNeEDceJcBflDKQ_4d1YTppWtmqAruybhsped3Iwna8UVo1vJJmM9RVxTk2jcaG47ascGjLgjrBhSy5qMtKlkKucayx4iVva7EdsN2yiuNRkVs7dz6uQzwUlNKE3ZZL2RZODejS0k8hPF5gCZkQc11jN-9ZDdMhsYo7Sjn9OSVTdtjd69LyZZC37xL2_63E1wYz2RdTdJ3N-ZSYfGGiZ6I_ULbTsNbhyEQ_U--v1SmGn6gzE_3impjol7v8DgAA__84GB6X">