]> Cypherpunks repositories - gostls13.git/commit
cmd/link: implement -buildid for non-ELF binaries
authorRuss Cox <rsc@golang.org>
Thu, 4 Jun 2015 19:15:48 +0000 (15:15 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 5 Jun 2015 04:06:46 +0000 (04:06 +0000)
commit9ae3c560b977a8ca719f9e2955388907952766e5
tree8f889fb7cef5e89fb86a1eff79d9a18b5d114be4
parent16ebe9f72eee1ccba4e94fb2a79afa0785cb554a
cmd/link: implement -buildid for non-ELF binaries

Non-ELF binary formats are much less flexible and typically do not
have a good place to store the build ID.

We store it as raw bytes at the beginning of the text segment.

The only system I know of that will be upset about this is NaCl,
and NaCl is an ELF system and does not use this.

For #11048.

Change-Id: Iaa7ace703c4cf36392e752eea9b55e2ce49e9826
Reviewed-on: https://go-review.googlesource.com/10708
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pobj.go