Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: trailing padding after "Go" in ELF note name #36719
https://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section says [emphasis added]:
It looks like we get this right for the "NetBSD" tag, where we include a single nul-terminator character within the name (as measured by namesz), but then include an extra padding zero-byte for alignment.
However, for the "Go" tag, we include an extra nul-terminator within the name itself. The second nul-terminator should actually be padding.
Pointed out by Mark Kettenis from OpenBSD.
Hey @odeke-em. From my side, I tried to debug the issue, but locally the toolchain is built correctly and all tests pass; I have no clue how to debug the Try-Bots, so I don't know how easy/hard the fix would be.