Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spec: use inbuild gobuildid to generate build id with -B option
As of now, a random build ID (20 digits) generated and added to binary but with go-1.23.x it is causing following issue in the CI ``` /usr/lib/golang/pkg/tool/linux_amd64/link: -B option too long (max 16 digits): 0x1c32bce09ea23923c57a3cca65fd91e377714192 ``` Looks like `gobuilid` can be used to generate it with -B options without random ID and it can work without isssue for CI - golang/go#70380 ``` $ readelf -n out/linux-amd64/crc Displaying notes found in: .note.gnu.property Owner Data size Description GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 Properties: x86 ISA needed: x86-64-baseline Displaying notes found in: .note.gnu.build-id Owner Data size Description GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: f1c4d1d70301bc12737353faf4ee38de3cd25930 ```
- Loading branch information