<html>
    <head>
      <base href="http://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/COFF should support *_SECREL7 relocations"
   href="http://bugs.llvm.org/show_bug.cgi?id=32776">32776</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLD/COFF should support *_SECREL7 relocations
          </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>COFF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>peter@pcc.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>These are the only 8-bit COFF relocations that I am aware of for x86, so it
would be useful to support them to help fix PR32770. MC doesn't currently
support emitting them, so they're a little awkward to create at the moment.

<span class="quote">>type 1.s</span >
        .text
        .data
        .globl  p                       # @p
        .p2align        3
p:
        .long   p@secrel32

<span class="quote">>\src\llvm-project\ra\bin\llvm-mc -filetype=obj -o - 1.s | \src\llvm-project\ra\bin\obj2yaml - | \cygwin\bin\sed -e "s/SECREL/SECREL7/" | \src\llvm-project\ra\bin\yaml2obj -o 1.obj -</span >

<span class="quote">>..\llvm-project\ra\bin\lld-link /dll /export:p 1.obj /defaultlib:libcmt</span >
error: unsupported relocation type 0xc

<span class="quote">>link /dll /export:p 1.obj /defaultlib:libcmt</span >
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.

   Creating library 1.lib and object 1.exp</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>