/opt/riscv-new/lib/gcc/riscv64-unknown-linux-gnu/13.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /opt/riscv-new/sysroot/usr/lib/libc.a(dl-support.o): in function `_dl_aux_init':
dl-support.c:(.text+0x3c): undefined reference to `_start'
/opt/riscv-new/lib/gcc/riscv64-unknown-linux-gnu/13.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: dl-support.c:(.text+0xb8): undefined reference to `__ehdr_start'
/opt/riscv-new/lib/gcc/riscv64-unknown-linux-gnu/13.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: build/qemu/rvh_test.elf: hidden symbol `_start' isn't defined
/opt/riscv-new/lib/gcc/riscv64-unknown-linux-gnu/13.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: final link failed: bad value
Hi, I've tried to compile this unit test bin with riscv gnu toolchain, configured as:
./configure --prefix=/opt/riscv-new --disable-multilib --with-cmodel=medany --with-arch=rv64imafdc_zicsr --with-abi=lp64d
meanwhile, modify this bin's Makefile as below, in order to avoid soft float issure reported in https://github.com/josecm/riscv-hyp-tests/issues/14
But link error:
While compile platform=spike succeeds.