<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Relocation R_PPC64_REL24 overflow"
   href="https://llvm.org/bugs/show_bug.cgi?id=25540">25540</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Relocation R_PPC64_REL24 overflow
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

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

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

        <tr>
          <th>Keywords</th>
          <td>ABI
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Generic Execution Engine Support
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Wim.Lavrijsen@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>david.abdurachmanov@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15293" name="attach_15293" title="script to reproduce">attachment 15293</a> <a href="attachment.cgi?id=15293&action=edit" title="script to reproduce">[details]</a></span>
script to reproduce

We run into the following when JITting code on PowerPC:

Relocation R_PPC64_REL24 overflow
UNREACHABLE executed at
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:987!

Attached is a script to reproduce the problem: it generates a single file with
a large number (100) of large functions, then JITs it. The offsets grow until
they hit out of bounds. One level up the stack trace, same file line 1457, is
supposed to handle the range overflow case, but still uses the same relocation
type.

The above is not what we actually do in our code, but this allows the same code
path to hit with only llvm+clang.

Thanks!</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>