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

   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.


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