Generate GNU compatible build-id for mockkms golang binary (#7389)
* Generate GNU compatible build-id for mockkms golang binary Description diff-1: Fix compilation issue Generate GNU compatible build-id for mockkms golang binary Leverage "cgo" to generate build-id Testing Debian package build, verified the GNU build-id
This commit is contained in:
parent
8808d93813
commit
9396b691b7
|
@ -24,6 +24,15 @@
|
|||
|
||||
package main
|
||||
|
||||
// Importing module enable .note.gnu.build-id insertion in the ELF executable.
|
||||
// Few drawbacks of the scheme are:
|
||||
// 1. Potentialy slower builds
|
||||
// 2. No cross-compilation support
|
||||
// 3. Limited `go tools` availability.
|
||||
// TODO: Replace with a better scheme if possible.
|
||||
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"log"
|
||||
"math/rand"
|
||||
|
|
Loading…
Reference in New Issue