Repository navigation
riscos-crossdev 1.12
riscos-crossdev 1.12: UnixLib 5.0.3.9, and sturdier mixed programs
A new toolchain, with UnixLib 5.0.3.9 (was 5.0.3.7), from
riscos-unixlib:
lseekpast the end of a file no longer extends it. This fixes SQLite's
"file is not a database" on new databases on FileCore discs.- mmap with
PROT_NONEorPROT_READno longer aborts with
ARMEABISupport 1.08. __pthread_vfp_reclaim()in<unixlib/local.h>: Thumb programs call it
after Wimp_Poll, Wimp_PollIdle and Wimp_StartTask.- There are no struct or argument changes: relink to pick them up. GCC,
binutils, elf2aif and QEMU are as in 1.11.
Mixed programs (docs/MIXED.md):
- The whole of UnixLib is linked in and exported, not only the parts
in use.- A newer library pack can then use any UnixLib function without the
program being relinked. riscos-mesa found that a new libEGL needing
strcspnstopped older programs. - It costs about 750 KB per program, so set the
WimpSlotto match.
!MixHellonow uses 2048K. -no-whole-unixlibon the link turns it off for one program.check-shared-lib.shwarns if a library exports its own copy of a
UnixLib or libstdc++ function: the program's copy would now replace
it. riscos-gtk's!GTKLibsand riscos-mesa's!MesaLibshave none.
- A newer library pack can then use any UnixLib function without the
- A start-up check: if a library needs a name that neither the program
nor a library defines, the program stops beforemainwith an error box
naming the library and the name. Before, it ended silently when that
code first ran. checks/check-pack-imports.shcompares a new version of a library
pack with saved lists for the old one, and says what it newly needs
from programs.
Tested on RISC OS on Linux (QEMU):
- an older program runs with a newer library that needs
strcspn; - the start-up check names the missing function for a program linked
without the whole of UnixLib; - the GCCSDK-style C++ program and
!MixHello(started from the Filer)
run as before.
Also in this release: 1.11.3's notes on library directories (;),
the WimpSlot, and ARM-only shared libraries.
-
To update: check out v1.12, then
make prebuiltinto an empty
toolchain/env(move the old one away first). Relink mixed programs to
get the whole of UnixLib. With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.12. -
The toolchain is
riscos-crossdev-toolchain-1.12-x86_64-linux.tar.xz
(attached), sha256
c1ef74e83501b1a0bbbe46954acc964f3c74c77076f79c26504167383b0c4237.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.9's release asset, in all 902 objects.
- Its
-
The devkit is still riscos-mesa 20.3.5-18.
docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.12 make check all
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.