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: unassignedb...@nondot.org Reporter: b...@comstyle.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs