-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Commit 61f4d6e
cmd/cgo: don't generate random numbers for symbols
If cgo is built with -flto the symbols in runtime/cgo is going to
include random numbers which would make builds unreproducible.
Settings -frandom-seeds ensures this is consistent across builds.
$ strings --all --bytes=8 $WORK/b055/_pkg_.a | grep "gnu.lto_.profile"
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
.gnu.lto_.profile.1
Signed-off-by: Morten Linderud <morten@linderud.pw>1 parent 2e773a3 commit 61f4d6e
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2551 | 2551 |
| |
2552 | 2552 |
| |
2553 | 2553 |
| |
2554 | + | ||
2555 | + | ||
2556 | + | ||
2557 | + | ||
2558 | + | ||
2559 | + | ||
2554 | 2560 |
| |
2555 | 2561 |
| |
2556 | 2562 |
| |
|
0 commit comments