Musl linux gcc references missing shared library

User space binaries output by:

gcc version 10.2.0 (Xuantie-900 linux-5.10.4 musl gcc Toolchain V2.6.1 B-20220906)

link to:
ld-musl-riscv64xthead.so.1

However, the buildroot image has only:
ld-musl-riscv64v0p7_xthead.so.1

One fix that seems to work is to simply:
ln -s ld-musl-riscv64v0p7_xthead.so.1 ld-musl-riscv64v0p7_xthead.so.1

Is there a better way to fix this problem?

添加

export LDFLAGS="-mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d"

然后编译出来的就是正确的了

That works. Thank you!