/ go Public
cmd/link/internal/ld: Passing incorrect offset to
Issues related to the Go compiler and/or runtime.
The path to resolution is known, but the work has not been done.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
The internal function
asmbMachowhich creates the mach-o header passes incorrect values to the
Line 871 in 5a962bf
What did you expect to see?
codesign.Signexpects the offset and size of the executable segment.
What did you see instead?
Instead, only the values of the
__textsection are passed.
It seems this gets sort of fixed in the end because
codesign.Signgets executed again in the
cmd/internal/buildidand this time, the correct values are passed.
Lines 107 to 112 in 1635205
The fix is quite easy, the local variable
asmbMachoalready holds the exec file size and the offset should be 0.
I am not an expert on the buildid, but does this rewrite always happen? Or just under special circumstances?
The text was updated successfully, but these errors were encountered: