switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic linking/loading support

VelocityRa opened this issue · comments

Is dlopen-like dynamic loading support planned? libtransistor supports it.

commented

Doing this properly and cleanly would require a major redesign of both the toolchain (specifically the newlib component) and libnx. This is something we are not willing to do for the moment. I haven't looked at the other lib, but I suspect it has the problems that a trivial implementation is expected to have (mostly versioning problems and libc/libstdc++ sharing/availability problems).

Keep in mind that official software does not use system wide shared libraries. Official software comes prepackaged with all dynamically loadable components it will ever be expected to require; this includes the SDK nso. They essentially function as a single monolithic unit, not very different in practice to homebrew NROs.

It does have libc sharing problems