arnavsharma990 commented on issue #20154: URL: https://github.com/apache/nuttx/issues/20154#issuecomment-5711991900
I investigated this and was able to reproduce it from a clean `rv-virt:nsh64` build. The failure appears to come from GCC 16's `libgcc`: `_clzsi2.o`, `_udivdi3.o` and `_ffssi2.o` use `R_RISCV_HI20` absolute relocations for `__clz_tab`. Since `rv-virt` links at `0x80000000`, these relocations cannot be represented on RV64. A minimal test confirms the same GCC 16 `libgcc` links successfully at `0x10000` but fails at `0x80000000`. With xPack GCC 13.2.0, the corresponding objects use PC-relative relocations and `rv-virt:nsh64` builds successfully. So this looks like a GCC 16/toolchain compatibility issue rather than an NuttX configuration or image-size issue. The RWX warning is separate. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
