Skip to content

riscos-crossdev 1.13

Choose a tag to compare

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

riscos-crossdev 1.13

Programs could abort at start-up on a Pi: rebuild with 1.13

Programs built with riscos-crossdev 1.12 and earlier could stop at once on
RISC OS 5 on a Raspberry Pi, with "abort on data transfer", before doing
anything. It depended only on how the program happened to be linked.

  • Cause: UnixLib's assembler gave some of its word data (and crt0's)
    no alignment. In some programs a word landed at an odd address, and
    UnixLib's own start-up read it. A Pi normally runs with alignment
    exceptions on, so that read aborts. RISC OS on Linux doesn't check
    alignment, so it never showed there.
  • Who's affected: Groove and YTDL are; other programs were lucky.
  • Thanks to Geofrey Baxendale, who reported it on the ROOL forum when
    Groove wouldn't start.
  • The fix: 1.13's toolchain aligns all of it (13 places in UnixLib's
    assembler, crt0 included) and checks the result. Nothing else in
    UnixLib changes. Rebuild your program with 1.13.
  • A new check: checks/check-data-align.py, run by check-all.sh on
    every program, so CI catches misaligned data whatever its cause.

UnixLib 5.0.3.10

The toolchain is built with riscos-unixlib 5.0.3.10.

An optional GCC 16 toolchain

riscos-crossdev-toolchain-gcc16-1.13-x86_64-linux.tar.xz, on this release
as well: GCC 16.2.0 and binutils 2.45.1, for ports that need C++23
(WebKitGTK 2.46 and later).

  • GCC 10.2 stays the default. Nothing changes for a port that doesn't
    choose GCC 16. To use it, unpack it and point RISCOS_TOOLCHAIN at it
    (see docs/GCC16.md).
  • Same as the default toolchain: the same UnixLib, the same driver
    behaviour (static by default, mixed programs, -pthread) and the same
    checks.
  • Speed: WebKit's JavaScriptCore runs Octane on a Pi 4 as fast as with
    GCC 10 (RegExp 4.6% faster). Four GCC 16 slowdowns on 32-bit ARM are
    fixed in this build: register allocation in Thumb-2, deep recursive
    inlining, std::to_string, and std::unordered_map lookups.
  • libatomic is included (-latomic).
  • Credit: the RISC OS patches to GCC and binutils are Rob Heaton's,
    from riscos-gcc16, with
    thanks. riscos-gcc16's UnixLib isn't used.

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.