Skip to content

System shared-library dependencies are not lazily loaded in single-file on Linux #54347

Closed

Description

See #45720 for an example.

It looks like the default runtime deployment avoids this by loading libSystem.Net.Security.Native.so lazily, which will only then load many of the system libraries. Since that library is not statically compiled into the host, its dependencies are loaded eagerly.

Unfortunately the only way to implement this may be to call dlopen ourselves, since I don't know a way of getting the Linux linker to automatically insert the stub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions