https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91420
--- Comment #3 from Bin Meng <bmeng.cn at gmail dot com> --- Thanks Andrew for the quick response! Agreed, that it's caused by the current code model limitation of RISC-V. However I was wondering why passing "-O0" could make the linking pass.