[llvm-bugs] [Bug 32776] New: LLD/COFF should support *_SECREL7 relocations

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 24 16:05:12 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32776

            Bug ID: 32776
           Summary: LLD/COFF should support *_SECREL7 relocations
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org

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.

>type 1.s
        .text
        .data
        .globl  p                       # @p
        .p2align        3
p:
        .long   p at secrel32

>\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 -

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

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

   Creating library 1.lib and object 1.exp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170424/754f1087/attachment.html>


More information about the llvm-bugs mailing list