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

cmd/link: dwarf_aranges corrupt on 32 bit platforms #14278

Closed
ribrdb opened this issue Feb 9, 2016 · 1 comment
Closed

cmd/link: dwarf_aranges corrupt on 32 bit platforms #14278

ribrdb opened this issue Feb 9, 2016 · 1 comment

Comments

@ribrdb
Copy link
Contributor

ribrdb commented Feb 9, 2016

The dwarf spec says aranges should be aligned to 2*(address size), but writearanges only aligns to one:
headersize := int(Rnd(4+2+4+1+1, int64(Thearch.Ptrsize)))

This works by accident on 64 bit platforms, but for 32 bit the data is corrupt.

@ianlancetaylor ianlancetaylor modified the milestones: Go1.7, Go1.6Maybe Feb 9, 2016
@gopherbot
Copy link

CL https://golang.org/cl/19452 mentions this issue.

@golang golang locked and limited conversation to collaborators Feb 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants