Join GitHub today
GitHub is home to over 40 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.