acassis commented on issue #19178:
URL: https://github.com/apache/nuttx/issues/19178#issuecomment-4783428655

   > From what I can see, the module loader is expecting the architecture to 
provide `up_checkarch()`, `up_relocate()`, and `up_relocateadd()`. Those hooks 
are implemented for a few other architectures under 
`libs/libc/machine/*/arch_elf.c`, but I’m not seeing the same support for MIPS. 
So this looks more like a missing piece of MIPS support in NuttX than a simple 
build/config issue on your side.
   > 
   > One small extra note: because you’re using `mips-linux-gnu-`, the 
toolchain may also matter here, since NuttX MIPS support is usually more 
aligned with bare-metal ELF toolchains. But even setting that aside, the 
immediate problem seems to be that the MIPS-side ELF relocation support for 
loadable modules just isn’t implemented yet.
   > 
   > So my honest read is: you’ve run into a gap in support, not a mistake in 
setup. If you want to get module loading working on MIPS, it will likely need a 
proper MIPS `arch_elf` implementation and the related build-system wiring. It 
may also be worth tightening Kconfig in the future so people get a clearer 
error earlier instead of hitting this at link time.
   
   Thank you @aviralgarg05 that is my understanding as well.
   
   @wangtao13 since MIPS is very similar to RISC-V, I think you can use RISC-V 
arch_elf as starting point. If you need help, please ask in the NuttX mailing 
list. You can find here the instructions to subscribe: 
https://nuttx.apache.org/community/


-- 
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]

Reply via email to