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

    <tr>
        <th>Summary</th>
        <td>
            `clang` cannot link for `avr` target with `-flto` enabled since `--ld-path` is ignored and `avr-ld` cannot link LLVM bitcode
        </td>
    </tr>

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

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

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

<pre>
    Maybe as a temporary workaround we can link and optimize LLVM bitcode into a single file, on which then call the original `avr-ld` with the libs that are not in bitcode as arguments. Though for now it doesn't work for me.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVUU1vnDAQ_TVwGS3ie-HAIUlVteqmvVS9D3gW3Bgb2UNW21_fMVGjVELiDW_0PobRqfvwjPeRAAMgMK2b8-jvcHP-Bb3brYIbwYQWjLYvgDK7jfWq_xBcLr-eYdQ8OUWgLTtRCNrOhuCqDSXlEzgLt0VPC_BCVmSMiQic17O2aCBpc3z1J6MEwE3zsShWYxCADOgJrGNRfzeKQf28r2Q5ZPBzcfu8wNV52buBZlCOgk3KMx8dDmalLFVDpfqqx5Q1GxrEbzJo5-gr7aLHUTCuv4WKDIsT8VswmU9Xwy5-J4ujIRXbTnQwUuG0IS-R1QH0bJ2XhXiv_zp-9Pp4v3T3ZliYt5BUD0n5WZ5ZXPcxm9wqgzGv_16nzbvfNLGMOoSdgoCm6es8XYa8mfpO1UhVVfRd3RZ9c-4aqrqx7dvyjKnBkUwYkuYxKUtLcrEoIThpPqV6KPOyzNu8K4qqa-pMTXhWlE-kirEqFSZ1Titqk8UcmfNz6ocj0rjPQUijg_yUdxJDkEMQHXaijzsvzg_fflwevn99-pIe3sOR_S9JYNae">