<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 - relocation R_X86_64_PC32 out of range error"
   href="https://bugs.llvm.org/show_bug.cgi?id=38037">38037</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>relocation R_X86_64_PC32 out of range error
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>shivarama.rao@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20516" name="attach_20516" title="attachment files">attachment 20516</a> <a href="attachment.cgi?id=20516&action=edit" title="attachment files">[details]</a></span>
attachment files

lld is unable to link the object files compiled for omp2012 357.bt331. However
the gnu ld linker is linking the object files.

the attachment contains the object files generated and the link command
"buildme". the lld aborts with the following error.

ld.lld: error: crtstuff.c:(.text+0x82): relocation R_X86_64_PC32 out of range:
11466212385 is not in [-2147483648, 2147483647]
ld.lld: error: crtstuff.c:(.text+0x95): relocation R_X86_64_PC32 out of range:
11466212366 is not in [-2147483648, 2147483647]

the source file x_solve.o might be the cause of the problem. the source code
has a huge array declaration. 

4 .tbss         0006d720  0000000000000000  0000000000000000  00001a20  2**5
                  ALLOC, THREAD_LOCAL

At this point I am not sure if it is lld bug. If not, what is the correct way
to overcome this linking 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>