Skip to content

riscos-crossdev 1.12

Choose a tag to compare

@adyoull adyoull released this 22 Nov 14:22
· 14 commits to main since this release

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:

  • lseek past 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_NONE or PROT_READ no 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
      strcspn stopped older programs.
    • It costs about 750 KB per program, so set the WimpSlot to match.
      !MixHello now uses 2048K.
    • -no-whole-unixlib on the link turns it off for one program.
    • check-shared-lib.sh warns if a library exports its own copy of a
      UnixLib or libstdc++ function: the program's copy would now replace
      it. riscos-gtk's !GTKLibs and riscos-mesa's !MesaLibs have none.
  • A start-up check: if a library needs a name that neither the program
    nor a library defines, the program stops before main with an error box
    naming the library and the name. Before, it ended silently when that
    code first ran.
  • checks/check-pack-imports.sh compares 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 prebuilt into 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.a has the same code and data as riscos-unixlib
      v5.0.3.9's release asset, in all 902 objects.
  • 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.