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

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

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

max-charlamb opened this issue Feb 11, 2025 · 1 comment · Fixed by #113627
Labels
area-Diagnostics-coreclr enhancement Product code improvement that does NOT require public API changes/additions in-pr There is an active PR which will close this issue when it is merged
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.

@tommcdon tommcdon added this to the 10.0.0 milestone Feb 14, 2025
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Mar 25, 2025
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 in-pr There is an active PR which will close this issue when it is merged
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants