[llvm-bugs] [Bug 33422] New: lld fails to link kernel modules on FreeBSD/i386

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 12 11:09:22 PDT 2017


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

            Bug ID: 33422
           Summary: lld fails to link kernel modules on FreeBSD/i386
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
            Blocks: 23214

Bug created for tracking - reproduction tarball will be added.

While linking the FreeBSD/i386 kernel the linking fails with errors of two
types:

ld -m elf_i386_fbsd -Bshareable -d -warn-common -o 3dfx_linux.ko.full 
3dfx_linux.kld
ld: error: can't create dynamic relocation R_386_32 against symbol:
__stack_chk_guard
>>> defined in 3dfx_linux.kld
>>> referenced by tdfx_linux.c:47 (/scratch/tmp/emaste/freebsd/sys/dev/tdfx/tdfx_linux.c:47)
>>>               3dfx_linux.kld:(linux_ioctl_tdfx)
ld: error: can't create dynamic relocation R_386_PC32 against symbol:
__cap_rights_init
>>> defined in 3dfx_linux.kld
>>> referenced by tdfx_linux.c:58 (/scratch/tmp/emaste/freebsd/sys/dev/tdfx/tdfx_linux.c:58)
>>>               3dfx_linux.kld:(linux_ioctl_tdfx)

Background: We are attempting to build at least our Tier-1 FreeBSD
architectures (32- and 64-bit x86 and ARM) with LLD. We currently have LLVM
r305145 imported into a test branch and both 64-bit archs successfully build
with LLD, while both 32 bit archs fail.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=23214
[Bug 23214] [META] Using LLD as FreeBSD's system linker
-- 
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/20170612/b0007295/attachment.html>


More information about the llvm-bugs mailing list