]> Cypherpunks repositories - gostls13.git/commit
ld: ensure that PE versions sync for internal and external linkage
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 26 Aug 2019 13:21:36 +0000 (07:21 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 31 Aug 2019 14:56:29 +0000 (14:56 +0000)
commitc96d794f66e952f216e415d0305f2555a3bfada9
tree0ffad5e1ec879c950c52736c8ba48a314d9dd872
parent8fc35238a701248c847a32d96bf69a11b67965b2
ld: ensure that PE versions sync for internal and external linkage

Previously users who opted into cgo might have received a bit of a
behavior surprise when their mingw installation defaulted to a
potentially older and different set of compatibility hacks. Since Go is
explicitly targeting >=6.1 for internal linkage, propagate these changes
to external linkage too.

While we're at it, we move these values into constant variables so that
they don't become out of sync and allow for easy updating as Go
gradually drops compatibility for older operating systems.

Change-Id: I41e654d135be6e3db9088e73efeb414933e36caa
Reviewed-on: https://go-review.googlesource.com/c/go/+/191842
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/pe.go