Skip to content

Support linking native libraries to cDAC on non-Windows platforms #112416

Closed
@max-charlamb

Description

@max-charlamb

#111759 adds support for linking native libraries to the cDAC dll on Windows.

Linking libraries in to a NativeAOT SharedLibrary (like the cdacreader.dll) is difficult as the dll does not know where it is located on the system, only the location the entry executable. The only way to access the location of the shared library itself is through OS APIs. See #112290 for more details.

We have gotten around this on Windows by using a static import library and the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag on the native loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions