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: [email protected]
Reporter: [email protected]
CC: [email protected]
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@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._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs