Skip to content

libounce 20261123

Choose a tag to compare

@github-actions github-actions released this 24 Nov 19:26
75e79e2

Dynamic linking for Switch 2.

  • libounce.so.1: libounce, its allocator, newlib and a dynamic linker in one shared library. A program links it, and its own shared libraries, as on Linux; the loader maps them and the runtime library links them when the program starts.
  • libstdc++.so.6, shared by all modules of a C++ program, with C++ exceptions across modules.
  • dlopen, dlsym, dlclose and dlerror, with RTLD_LOCAL and RTLD_GLOBAL scopes, RTLD_DEFAULT and RTLD_NEXT.
  • Thread-local variables in every module; a library loaded with dlopen can use the general-dynamic model for any size.
  • switch_shared.specs and SWITCH2_SHARED_ARCH, SWITCH2_SHARED_SPECS and SWITCH2_SHARED_LIBPATHS in switch2_rules. CMake: -DOUNCE_SHARED=ON on the toolchain. Meson and autotools: OUNCE_SHARED=1 before switch2vars.sh.
  • A result for each reason that a dynamically linked program did not start (2346-0200 to 2346-0206, dynlink.h).
  • nx/libounce.abi records the symbols that libounce.so.1 exports.

Statically linked programs build and run as before. Dynamically linked programs need kaiHEN 20261123 or later, whose loader maps their libraries.

Install with devkitPro's pacman: dkp-pacman -U libounce-20261123-1-any.pkg.tar.zst.