[llvm-bugs] [Bug 39228] New: error("misaligned ldr/str offset") on aarch64-windows build

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 9 08:02:38 PDT 2018


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: unassignedbugs at nondot.org
          Reporter: dmajor at mozilla.com
                CC: llvm-bugs at lists.llvm.org, martin at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181009/c56a71e4/attachment-0001.html>


More information about the llvm-bugs mailing list