cmd/go: revert TestScript/build_trimpath to use ioutil.ReadFile
cmd/go: revert TestScript/build_trimpath to use ioutil.ReadFile

This call was changed to os.ReadFile in CL 266365, but the test also
builds that source file using gccgo if present, and released versions
of gccgo do not yet support ioutil.ReadFile.

Manually tested with gccgo gccgo 10.2.1 (see #35786).

Fixes #43974.
Updates #42026.

Change-Id: Ic4ca0848d3ca324e2ab10fd14ad867f21e0898e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/287613
Trust: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
Run-TryBot: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
Reviewed-by: Jay Conrod <f3fadaedc813344da5ec13b41e26596889cc5baa@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

cloudflare/go,golang/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,nawawi/go,CAFxX/go,cloudflare/go,golang/go,nawawi/go,cloudflare/go,golang/go,CAFxX/go,nawawi/go,CAFxX/go,cloudflare/go,nawawi/go,golang/go,golang/go,nawawi/go,cloudflare/go,cloudflare/go,nawawi/go,CAFxX/go,golang/go,nawawi/go,CAFxX/go,golang/go,golang/go,CAFxX/go,cloudflare/go