<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 - lld 10 fails to link mozilla rr: can't create dynamic relocation R_386_32 against local symbol in readonly segment"
   href="https://bugs.llvm.org/show_bug.cgi?id=47586">47586</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld 10 fails to link mozilla rr: can't create dynamic relocation R_386_32 against local symbol in readonly segment
          </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>enhancement
          </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>mail@milianw.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I try to compile mozilla rr (<a href="https://github.com/mozilla/rr">https://github.com/mozilla/rr</a>) with lld
10.0.1 I get:

ld.lld: error: can't create dynamic relocation R_386_32 against local symbol in
readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to
allow text relocations in the output
<span class="quote">>>> defined in CMakeFiles/fxregs_32.dir/32/x86/fxregs.c.o
>>> referenced by fxregs.c:64 (32/x86/fxregs.c:64)
>>>               CMakeFiles/fxregs_32.dir/32/x86/fxregs.c.o:(main)</span >

The maintainer says that for him linking with lld 9 succeeds. See also the bug
report over at rr for this issue: <a href="https://github.com/mozilla/rr/issues/2650">https://github.com/mozilla/rr/issues/2650</a></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>