Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add nuclei_llvm experimental support
still not working for both terapines and nuclei_llvm $ make TOOLCHAIN=nuclei_llvm DOWNLOAD=sram -j run_qemu Run program helloworld.elf on qemu-system-riscv32 qemu-system-riscv32 -M nuclei_evalsoc,download=sram -cpu nuclei-n100m,ext= -icount shift=0 -nodefaults -nographic -serial stdio -kernel helloworld.elf qemu-system-riscv32: Some ROM regions are overlapping These ROM regions might have been loaded by direct user request or by default. They could be BIOS/firmware images, a guest kernel, initrd or some other file loaded into guest memory. Check whether you intended to load all this guest code, and whether it has been built to load to the correct addresses. The following two regions overlap (in the memory address space): helloworld.elf ELF program header segment 1 (addresses 0x0000000080000100 - 0x00000000a0000338) helloworld.elf ELF program header segment 0 (addresses 0x0000000080000180 - 0x00000000800001f2) when compile with terapines zcc $ make TOOLCHAIN=terapines DOWNLOAD=sram clean all see helloworld.map 80000100 80000100 80 4 .isr_vector 80000100 80000100 80 4 ../../../SoC/evalsoc/Common/Source/sy stem_evalsoc.c.o:(.mintvec) 80000100 80000100 80 1 vector_base 80000100 80000100 0 1 $d.14 a00000f2 a00000f2 aa 1 .init // FIXME this should be a0000000 a00000000 a00000f2 a00000f2 a8 1 ../../../SoC/evalsoc/Common/Source/GC C/startup_evalsoc.S.o:(.text.init) a00000f2 a00000f2 0 1 a00000f2 a00000f2 0 1 $x.0 $ make TOOLCHAIN=nuclei_llvm DOWNLOAD=flashxip clean all Linking : helloworld.elf ld.lld: error: section '.exception' will not fit in region 'flash': overflowed by 1602224620 bytes ld.lld: error: section '.isr_vector' will not fit in region 'flash': overflowed by 1602224512 bytes ld.lld: error: section '.eh_frame' will not fit in region 'flash': overflowed by 1602225328 bytes ld.lld: error: section '.init' will not fit in region 'flash': overflowed by 1602225508 bytes ld.lld: error: section '.init' will not fit in region 'flash': overflowed by 1602225508 bytes ld.lld: error: section '.text' will not fit in region 'flash': overflowed by 1602249928 bytes ld.lld: error: section '.text' will not fit in region 'flash': overflowed by 1602249928 bytes ld.lld: error: section '.data' will not fit in region 'flash': overflowed by 1602250400 bytes ld.lld: error: section '.tdata' will not fit in region 'flash': overflowed by 1602250400 bytes riscv64-unknown-elf-clang: error: ld command failed with exit code 1 (use -v to see invocation) make: *** [../../../Build/Makefile.rules:98: helloworld.elf] Error 1 $ make TOOLCHAIN=terapines DOWNLOAD=flashxip clean all Linking : helloworld.elf ld.lld: error: section '.exception' will not fit in region 'flash': overflowed by 1602224620 bytes ld.lld: error: section '.isr_vector' will not fit in region 'flash': overflowed by 1602224512 bytes ld.lld: error: section '.init' will not fit in region 'flash': overflowed by 1602224916 bytes ld.lld: error: section '.init' will not fit in region 'flash': overflowed by 1602224916 bytes ld.lld: error: section '.text' will not fit in region 'flash': overflowed by 1602243480 bytes ld.lld: error: section '.text' will not fit in region 'flash': overflowed by 1602243480 bytes ld.lld: error: section '.data' will not fit in region 'flash': overflowed by 1602243568 bytes ld.lld: error: section '.tdata' will not fit in region 'flash': overflowed by 1602243568 bytes zcc: error: ld command failed with exit code 1 (use -v to see invocation) make: *** [../../../Build/Makefile.rules:98: helloworld.elf] Error 1 Signed-off-by: Huaqi Fang <[email protected]>
- Loading branch information