[llvm-bugs] [Bug 40865] New: [PowerPC64] lld is processing R_PPC64_ADDR64 relocations incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 26 04:16:28 PST 2019


            Bug ID: 40865
           Summary: [PowerPC64] lld is processing R_PPC64_ADDR64
                    relocations incorrectly
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: luporl at FreeBSD.org
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

On PowerPC64, the relocations of FreeBSD kernel modules metadata are not being
resolved correctly.

For instance, the relocations below end up turning into zeroes, after the final
link step:

RELOCATION RECORDS FOR [set_modmetadata_set]:
OFFSET           TYPE              VALUE 
0000000000000000 R_PPC64_ADDR64    .data
0000000000000008 R_PPC64_ADDR64    .data+0x0000000000000018

But when linking with ld.bfd instead, they are replaced by .data and .data+0x18

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/20190226/59252d78/attachment.html>

More information about the llvm-bugs mailing list