https://bugs.llvm.org/show_bug.cgi?id=39228
Bug ID: 39228
Summary: error("misaligned ldr/str offset") on aarch64-windows
build
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedb...@nondot.org
Reporter: dma...@mozilla.com
CC: llvm-bugs@lists.llvm.org, mar...@martin.st
Created attachment 20979
--> https://bugs.llvm.org/attachment.cgi?id=20979&action=edit
repro.zip
We're hitting a case where `Size` is 8 but `Imm` ends with hex digit 4 at
https://github.com/llvm-mirror/lld/blob/1b68a4c56aee3d9008dd08e8bbc49e314a12b592/COFF/Chunks.cpp#L247
This happens with cl.exe as the compiler, as we can't yet build with clang-cl
due to missing support of https://reviews.llvm.org/D51204. Under link.exe these
files link without any errors. I'm assuming that means that lld-link ought to
handle it too.
Hopefully the attached zip file has enough state to reproduce this, but let me
know if I've missed something.
lld-link.exe -NOLOGO -DLL -OUT:mozglue.dll -PDB:mozglue.pdb
-SUBSYSTEM:WINDOWS,6.02 -MACHINE:ARM64 @mozglue_dll.list ./module.res
-LARGEADDRESSAWARE -DEBUG -OPT:REF,ICF -DEF:mozglue.def -guard:cf
-DELAYLOAD:user32.dll -DELAYLOAD:crypt32.dll -DELAYLOAD:wintrust.dll
kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib
secur32.lib dbghelp.lib crypt32.lib version.lib wintrust.lib delayimp.lib
lld trunk r343990
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs