[llvm-bugs] [Bug 30815] New: linking OpenBSD/amd64 kernel

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 27 18:46:23 PDT 2016


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

            Bug ID: 30815
           Summary: linking OpenBSD/amd64 kernel
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: brad at comstyle.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I'm opening this as a tracker for issues that pertain to linking the
OpenBSD/amd64 kernel with lld. With the recent work that went into the
improvements with the linker script support lld can now link the kernel without
any errors or warnings (because of other additional fixes that went in), but
the resulting kernel is not bootable vs the kernel built with bfd (our binutils
2.17 + patches). It looks like it is failing to load the kernel with the boot
loader.

$ make LD=ld            
ld -T ../../../../arch/amd64/conf/ld.script -X --warn-common -nopie -S -o bsd
${SYSTEM_HEAD} vers.o ${OBJS}
text    data    bss     dec     hex
9116384 267112  671744  10055240        996e48
$ rm bsd     
$ make LD=ld.lld        
ld.lld -T ../../../../arch/amd64/conf/ld.script -X --warn-common -nopie -S -o
bsd ${SYSTEM_HEAD} vers.o ${OBJS}
text    data    bss     dec     hex
9120789 267112  671744  10059645        997f7d

-- 
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/20161028/c4034068/attachment.html>


More information about the llvm-bugs mailing list