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
implement unexported func name removing #633
Conversation
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.
Looks good
internal/linker/patches/0001-add-dynamic-magic-value-and-unexported-function-name.patch
Outdated
Show resolved
Hide resolved
Since |
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.
SGTM. want to squash with a commit message?
You better do it :) |
Removing unexportable function names is implemented by this algorithm:
runtime.funcnametab
by 0 offsetruntime.funcnametab
creation, all non-exportable function names are forwarded to 0 offset, i.e. to correct empty stringStats (GOOS=linux):