Hello everyone!
This is a minimal patchset for making U-Boot build with Clang on RISC-V, something I stumbled upon while writing U-Boot build scripts for SerenityOS's RISC-V port. The only change is a (for unclear reasons...) differently-named flag for fixing the global pointer. Notably, this patch does not make U-Boot actually functional under Clang. Booting this on QEMU (`-M virt -kernel path/to/u-boot -serial stdio`) hangs after the image is loaded. I do not have the motivation to debug this, but it may be helpful for further work on getting a working build out of Clang on this architecture. Greetings, kleines Filmröllchen Changes in v2: - Removed copyright attribution - Use -ffixed-x3 unconditionally as it is also supported by GCC kleines Filmröllchen (1): riscv: Support building with Clang arch/riscv/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.39.2