Skip to content

add support for more ABIs in litecross + update target list in README#226

Open
alexrp wants to merge 2 commits into
richfelker:masterfrom
alexrp:upstream-litecross-abis
Open

add support for more ABIs in litecross + update target list in README#226
alexrp wants to merge 2 commits into
richfelker:masterfrom
alexrp:upstream-litecross-abis

Conversation

@alexrp

@alexrp alexrp commented Mar 9, 2026

Copy link
Copy Markdown

No description provided.

Comment thread README.md
Comment on lines -54 to +61
- `mips-linux-musl`
- `mips[el]-linux-musl[sf]`
- `mips64[el]-linux-musl[n32][sf]`
- `mips[isa32][el]-linux-musl[sf]`
- `mipsisa32r2[el]-linux-musl[nan2008][sf]`
- `mipsisa32r6[el]-linux-musl[sf]`
- `mips[isa]64[el]-linux-musl[n32][sf]`
- `mipsisa64r2[el]-linux-musl[n32][nan2008][sf]`
- `mipsisa64r6[el]-linux-musl[n32][sf]`

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine this will be confusing, so to clarify:

  • MIPS r2 added optional support for nan2008.
  • MIPS r6 made nan2008 mandatory.
  • Earlier MIPS versions only supported the legacy format.

I'm also listing the r6 targets on their own since r6 is effectively a distinct ISA due to instruction encoding changes.

Comment thread litecross/Makefile
Comment thread litecross/Makefile
Comment on lines 46 to +52
ifneq ($(filter %sf,$(TARGET)),)
ifeq ($(findstring loongarch,$(TARGET)),)
ifeq ($(findstring riscv,$(TARGET)),)
GCC_CONFIG_FOR_TARGET += --with-float=soft
endif
endif
endif

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCC does not accept --with-float=... for LoongArch and RISC-V, which is why we need --with-abi=... stuff below.

@alexrp alexrp force-pushed the upstream-litecross-abis branch from 98fcbd5 to 97c8410 Compare March 9, 2026 04:19
@alexrp alexrp force-pushed the upstream-litecross-abis branch from 97c8410 to f25a9f2 Compare March 9, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant