Just calling regular GNU strip without any flags, like in the diffstat I
showed earlier, does break race builds:
$ go build -race cmd/gofmt
# runtime/race
/usr/bin/ld: error in runtime/race/race_linux_amd64.syso(.eh_frame); no .eh_frame_hdr table will be created
# cmd/gofmt
runtime.runfinq: relocation target __tsan_finalizer_goroutine not defined
runtime.(*p).init: relocation target __tsan_proc_create not defined
runtime.(*p).destroy: relocation target __tsan_proc_destroy not defined
runtime.RaceDisable: relocation target __tsan_go_ignore_sync_begin not defined
runtime.RaceEnable: relocation target __tsan_go_ignore_sync_end not defined
[...]
Unclear if there's anything to improve here, then. My bad for not
noticing the breakage - it's clear that I'm not used to syso files :)