-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/cgo: unable to find value of constant for indirect macro on arm64 while setting -fsanitize=hwaddress #53285
Comments
I can't recreate this problem using any of
In general it's hard to see why this would be affected by What is the exact compiler version that you are using? Is it possible to try a newer version? |
it works on x86
and it doesn't work. it works on
|
i tried clang-13 and it's also not working. it can reproduce with following params:
|
Thanks. It looks like long long __cgodebug_ints[] = {
VARB,
1
}; cgo then looks through the symbol table of the object file to find
This is saying that the symbol is defined in section 11 at offset It may be possible for cgo to detect this case and adjut. |
Change https://go.dev/cl/411698 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: