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

    <tr>
        <th>Summary</th>
        <td>
            [BOLT] About optionally emitting the .bolt.org.text segment
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            BOLT
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          killerloura
      </td>
    </tr>
</table>

<pre>
    I have completed some work on code size optimization, but I noticed that BOLT emits a segment named .bolt.org.text, which accounts for nearly half of the code size in the executable. This renders my optimizations ineffective since the optimized executable is even larger than the unoptimized binary. In issue [#8 on https://github.com/facebookarchive/BOLT/issues/8](https://github.com/facebookarchive/BOLT/issues/8), I found that it is not straightforward to remove .bolt.org.text using bolt flags. I would like to know what optimizations are associated with it? Can I sacrifice some (or all) performance optimizations to remove this segment? Will this help in achieving actual code size reduction in BOLT's optimization work? Thank you.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU8Gu2zgM_Br7QtRw5LixDz60fQgQYIG9PGDPtExb2shiIFFJ069fyAnwXnrYS08CCHI4mhlijHbxREPRfi_atxKTGA7D2TpHwXEKWI483YcTGLwSaF4vjoQmiLwS3DicgT1ongii_UXAF7Gr_YVi2RfqB4xJ4ASexWqaQAwKfP_7r3eg1UoEhEjLSl7A40oTVCM7qTgsldBPyfM3Y7UB1JqTlwgzB_CEwd3BoJuBZxBDn_ZbvxXoJ-kkODqq4N3YCIH8RCHCen-hGMF6mmfSYq8ZwWva5p89NH1CAhuBruTBYVgo5M88liX_0T5aj-FewcmDjTERZF1V02WVjMglFs23Qh0LdVysmDRWmtdCHWfUNDKfMWhjr1SoY1apUMcNJBbq2BXtW6G6P8RQfRb1BDMn_7TDSv6YZ4EoAe1iZOZwwzCBMARa-Uq_-QIpWr9ArsHscIkVnODGyU3g7Jny3NnzDW4Z_lVtDAQYI2uLOUQ3KwasFM0RfqCHE0TUwc5W0yNfheo4ADpXqB4uFGYOK2aPXlE_iEr2-pmpjPqPde5RNOQuOR2ojaVr5o9aErpP2Qk0JZ0Rc99Du0N8WbUFPuO-G_RnuHOqymlopr7psaRhd9jVXdu1h7o0g8J-bnfz2IzYTbSbDrqZkRTWX7u5nlGXdlC12tfNrt_tVd_UVa2w7_qe2rHr-_00FfuaVrSucu66ZvXLzcmhaw_919LhSC5ud6vUg63KFxyG3P5lTEss9rWzUeIHgFhx261vA-0bfBs5PUxij87dt8OULE9O9m--P4UtU3DD_wQxb3s-Xy6B_yUtLynM9P8LAAD__3aPi5I">