https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224561
Bug ID: 224561 Summary: powerpc64: head -r327075 kldload (e.g.) of kernel modules built by clang 5.0.1 crashes the system Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: mar...@dsl-only.net [I experiment with system-clang as a means of building FreeBSD for powerpc64 (and powerpc).] [Note: -r326192 and its clang 5.0.0 context did not have this issue. 5.0.1 may have added to the range of relocation handling needed for dynamically loaded kernel modules.] When the powerpc64 kernel is (cross) built via -r327075 and its clang (5.0.1), the kernel produced crashes when dynamically loading kernel modules (say via kldload or via geom_label_load="YES" in /boot/loader.conf ). By contrast, the same sources used to cross build via devel/powerpc64-xtoolchain-gcc produces a kernel for which the same world (not updated) dynamically loads kernel modules just fine (including via kldload or via geom_label_load="YES" in /boot/loader.conf ). Both cases are using: devel/powerpc64-binutils because (A) lld does not work for powerpc64 built via clang last I knew and (B) the system binutils do not work for that kind of context either. I'll note that for TARGET_ARCH=powerpc clang 5 and the system binutils do not work together. There is no devel/powerpc-binutils and last I knew lld did not work for powerpc yet. So I've not tested a clang based kernel for it. A gcc 4.2.1 based kernel does not have the problem. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"