Repository navigation
riscos-crossdev 1.11
riscos-crossdev 1.11: UnixLib 5.0.3.7, and mixed programs
A new toolchain, with UnixLib 5.0.3.7 (was 5.0.3.6), from
riscos-unixlib,
and PThreadTicker 0.04. UnixLib's changes:
- shared memory works with ARMEABISupport 1.08 as well as 1.05;
isattyof a bad fd returns 0, andmmapwithMAP_ANONignores the fd;- it starts mixed programs (below).
There are no struct or argument changes: relink to pick them up. GCC,
binutils, elf2aif and QEMU are as in 1.10.
Mixed programs (docs/MIXED.md).
UnixLib, libstdc++ and libgcc are linked into the program, as always, but
its other libraries are shared libraries, loaded by !SharedLibs (SOManager
and ld-riscos/so/2). Programs that use the same library file share one
copy of it. Static programs are built exactly as before.
- Link the program with
-rdynamicinstead of-static
(RISCOS_MIXED_LDFLAGS), and build each library-fPIC, then
-shared -nostdlib … -lgcc(RISCOS_SO_*), or from a static archive
with$(call RISCOS_SO_FROM_A,...). - The program has one UnixLib, its own:
crtmixed.ostops it, with a message, if a library loaded a real
shared UnixLib;- stand-ins and
riscos-mixed-exportslet it use libraries built by
GCCSDK for fully shared programs.
- New checks:
check-shared-lib.shfor libraries and
check-mixed-package.shfor a packaged app.examples/mixedbuilds
!MixHello. - Shared libraries go in the app's own directory, or, to share them
between apps, in a library pack in!Boot.Resources(as riscos-gtk's
!GTKLibs). - Users need a !SharedLibs with
ld-riscos/so/2(GCCSDK 8 or later, as
Iris has), SharedUnixLibrary 1.16 and ARMEABISupport.
Tested:
- on a Raspberry Pi under RISC OS 5, with riscos-gtk's mixed Geany and
L3afpad: both use one 20 MB copy of GTK's 26 libraries; - on RISC OS on Linux, with MixTest (C and C++, threads, signals and
exceptions across the boundary), and with static, mixed and fully
shared programs running at the same time.
Also:
-
-pthreadworks, as on Linux; -
a mixed C program can use C++ libraries: the driver links libstdc++ in.
-
To update: check out v1.11, then
make prebuiltinto an empty
toolchain/env(move the old one away first). With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.11. -
The toolchain is
riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz
(attached), sha256
2998d87ef178112837ee76953da298aba5a893051a9c0d89d5630c1fcbb1af42.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.7's release asset, in all 902 objects.
- Its
-
The devkit is riscos-mesa 20.3.5-18 (was 20.3.5-17). Its libraries are
static, so a mixed program links them in.docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.11 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.