-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[NativeAOT] Do not strip exported symbols from executables on Apple platforms #85293
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
|
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
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!
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.
StripSymbols
project 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:
StripFlag
for this special use case, which will ignore exported symbols when stripping the executableStripFlag
into_StripFlag
as it is an internal propertycc: @kotlarmilos