<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 - Using LTO on PowerPC generates broken binaries"
   href="https://bugs.llvm.org/show_bug.cgi?id=47353">47353</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using LTO on PowerPC generates broken binaries
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pkubaj@anongoth.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>FreeBSD head, LLVM 11.0.0-rc2, powerpc64 elfv2

FreeBSD uses GH BC as its bc implementation. It tries to build using -flto, but
it's disabled for powerpc64, because it generates a broken bc that segfaults at
start.

I also tried to build ffmpeg 4.3.1 with --enable-lto passed to configure. -flto
is passed properly and ffmpeg builds fine. I can also compile software that
links to ffmpeg libraries. However, running such software (e.g. mpv, or just
ffmpeg itself) leads to instant segfault.

Compiling such software with GCC mitigates this issue.</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>