-
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/go: TestScript/version failing on Plan 9 #31706
Comments
I've started to implement parsing of Go version in Plan 9 a.out executables. I can match the info magic
The buildVersion and modinfo addresses I get are identical to the values returned by the
Either the buildVersion and modinfo values aren't set correctly or I did a mistake in the addresses calculations when reading the values. @rsc In Plan 9 executables, data segment addresses are absolute to the beginning of the file, right? |
Change https://golang.org/cl/174201 mentions this issue: |
No. See http://man.cat-v.org/plan_9/6/a.out. There's a zeroed page at the start of the addr space to catch nil writes, and then some extra page alignment between text and data. |
I believe this is obsolete; I think I fixed this in 0816d38 |
CL 173343 implemented
go version <binary>
. However, the openExe function doesn't implement decoding of Plan 9 executables. Consequently, the TestScript/version test fails.The text was updated successfully, but these errors were encountered: