<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 --- - Produce R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX when appropriate"
   href="https://llvm.org/bugs/show_bug.cgi?id=27428">27428</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Produce R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX when appropriate
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rafael.espindola@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>davide@freebsd.org, llvm-bugs@lists.llvm.org, ruiu@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given

 movq foo@GOTPCREL(%rip), %rax
 movl bar@GOTPCREL(%rip), %eax
.long zed@GOTPCREL

a recent gas produces


0000000000000003  000000050000002a R_X86_64_REX_GOTPCRELX 0000000000000000 foo
- 4
0000000000000009  0000000600000029 R_X86_64_GOTPCRELX     0000000000000000 bar
- 4
000000000000000d  0000000700000009 R_X86_64_GOTPCREL      0000000000000000 zed
+ 0


MC produces


0000000000000003  000000050000002a R_X86_64_REX_GOTPCRELX 0000000000000000 foo
- 4
0000000000000009  0000000600000029 R_X86_64_GOTPCRELX     0000000000000000 bar
- 4
000000000000000d  0000000700000009 R_X86_64_GOTPCREL      0000000000000000 zed
+ 0


We should add support for the new relocations.</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>