https://bugs.llvm.org/show_bug.cgi?id=40865

            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: unassignedb...@nondot.org
          Reporter: lup...@freebsd.org
                CC: llvm-bugs@lists.llvm.org, peter.sm...@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
addresses.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to