nuttx/arch/mips/include
Lwazi Dube 30a3769057 arch/mips: Add support for loadable ELF modules
Implement architecture-specific ELF header definitions and relocation handling
for the MIPS architecture to enable loadable modules.

Fixes #19178.

Changes include:
- Add `arch/mips/include/elf.h` with MIPS ELF relocation types and
  architecture-specific ELF data structures (`arch_elfdata_s`).
- Implement `libs/libc/machine/mips/arch_elf.c` containing `up_checkarch`,
  `up_relocate`, and `up_relocateadd` functions handling `R_MIPS_NONE`,
  `R_MIPS_32`, `R_MIPS_26`, `R_MIPS_HI16`, and `R_MIPS_LO16` relocations.
- Integrate MIPS machine-specific C library support in
  `libs/libc/machine/mips/Make.defs`.
- Update `LDMODULEFLAGS` in `arch/mips/src/mips32/Toolchain.defs` to include the
  little-endian (`-EL`) flag.
- Update `up_coherent_dcache` for proper cache synchronization on JZ4780.

Signed-off-by: Lwazi Dube <lwazeh@gmail.com>
2026-08-11 09:46:46 -03:00
..
jz4780 arch/mips/jz4780: Add hardware Random Number Generator (RNG) support 2026-08-08 15:03:44 -03:00
mips32 arch/mips: Add support to disable signals actions related data struct 2026-01-18 08:24:13 -03:00
pic32mx arch/irq.h: update all inline to inline_function 2025-01-06 23:03:05 +08:00
pic32mz arch/irq.h: update all inline to inline_function 2025-01-06 23:03:05 +08:00
.gitignore
arch.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
elf.h arch/mips: Add support for loadable ELF modules 2026-08-11 09:46:46 -03:00
inttypes.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
irq.h arch: rename STACK_ALIGNMENT to STACKFRAME_ALIGN across all architectures 2026-01-22 15:37:24 +08:00
limits.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
syscall.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
types.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00