If anyone wants to follow along with booting a Clang-built CFI-enabled x86 kernel, I've written up the instructions to build the latest LLVM and @samitolvanen's LTO/CFI/SCS tree. Enjoy! https://outflux.net/blog/archives/2019/11/20/experimenting-with-clang-cfi-on-upstream-linux/ …
When I do Clang arm64 builds, my "make" looks like: make -j$(getconf _NPROCESSORS_ONLN) ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CC=$HOME/src/llvm-build/bin/clang target-goes-here (And if you want lld, also add "LD=$HOME/src/llvm-build/bin/ld.lld")
-
-
how do I prepare a “cross” compiler on x86 for AArch64 target?
-
See my post at the top of this thread for instructions. A Clang build contains all backends, so a single binary can be used for native and cross compilation.
Kraj razgovora
Novi razgovor -
-
-
Ah, but I am building the kernel natively on ThunderX2.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Also,
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.