Repository navigation
riscos-crossdev 1.11-test1 (test build)
Pre-releaseriscos-crossdev 1.11-test1: mixed programs (TEST BUILD)
A test build, on the branch mixed-link-test. It's a pre-release:
ports' daily dependency updates don't move to it, and 1.10 stays the
latest release.
Mixed programs: UnixLib, libstdc++ and libgcc linked into the program,
as always, while the program's other libraries are shared libraries loaded
by !SharedLibs (SOManager and ld-riscos/so/2). How to build, check and
package one is in
docs/MIXED.md.
In short:
- link the program with
-rdynamicinstead of-static; - build each library with
-fPIC, then-shared -nostdlib … -lgcc; checks/check-all.shaccepts the program, and
checks/check-shared-lib.shchecks the libraries;examples/mixedbuilds!MixHello.
The toolchain is rebuilt with UnixLib 5.0.3.7-rc4, which starts a
mixed program correctly, and PThreadTicker 0.04. It also has crtmixed.o,
which lets C++ exceptions pass between a library and the program. Ordinary
static programs build and behave as with 1.10.
Tested: MixTest (C, C++, threads, signals, exceptions) passes 12/12 on
RISC OS on Linux, in QEMU and on real hardware with ARMEABISupport 1.05 and
1.08. It hasn't been run yet on RISC OS 5 directly on a Pi.
To run a mixed program, users need a !SharedLibs with ld-riscos/so/2
(GCCSDK 8 or later), SharedUnixLibrary 1.16, and ARMEABISupport.
To try it in a port: on a branch of the port, put
riscos-crossdev v1.11-test1 in .riscos-deps. Its CI then builds in
ghcr.io/adyoull/riscos-crossdev:1.11-test1. On your own machine, check
out v1.11-test1 and make prebuilt into an empty toolchain/env.
The toolchain is riscos-crossdev-toolchain-1.11-test1-x86_64-linux.tar.xz
(attached).
Support is as-is; report problems in GitHub Issues. Written with Claude as
a coding assistant; Andrew Youll directs the work.