Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #110758
max-charlamb opened this issue Feb 11, 2025 · 1 comment
Open
Tracked by #110758

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

max-charlamb opened this issue Feb 11, 2025 · 1 comment
Labels
area-Diagnostics-coreclr enhancement Product code improvement that does NOT require public API changes/additions
Milestone

Comments

@max-charlamb
Copy link
Contributor

max-charlamb commented Feb 11, 2025

#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.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 11, 2025
@max-charlamb max-charlamb added enhancement Product code improvement that does NOT require public API changes/additions area-Diagnostics-coreclr and removed area-Interop-coreclr untriaged New issue has not been triaged by the area owner labels Feb 11, 2025
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Diagnostics-coreclr enhancement Product code improvement that does NOT require public API changes/additions
Projects
Status: No status
Development

No branches or pull requests

2 participants