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. |
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: