-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[NativeAOT] Do not strip exported symbols from executables on Apple platforms #85293
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
Conversation
|
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue Details
However, this breaks a special use case on Apple platforms when an executable dynamically looks-up symbols in the current executable image (self-referencing) reported here: #85139 (comment) This PR:
cc: @kotlarmilos
|
am11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Outdated
Show resolved
Hide resolved
kotlarmilos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
jkotas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
… Apple platforms (dotnet#85293)" This reverts commit 32ecd85.
StripSymbolsproject property is now set by default when building with NativeAOT: #85139However, this breaks a special use case on Apple platforms when an executable dynamically looks-up symbols in the current executable image (self-referencing) reported here: #85139 (comment)
This PR:
StripFlagfor this special use case, which will ignore exported symbols when stripping the executableStripFlaginto_StripFlagas it is an internal propertycc: @kotlarmilos