cmd/link: ignore SEH marking on PE objects
cmd/link: ignore SEH marking on PE objects

Microsoft's linker looks at whether all input objects have an empty
section called @feat.00. If all of them do, then it enables SEH;
otherwise it doesn't enable that feature. So, since around the Windows
XP SP2 era, most tools that make PE objects just tack on that section,
so that it won't gimp Microsoft's linker logic. Go doesn't support SEH,
so in theory, none of this really matters to us. But actually, if the
linker tries to ingest an object with @feat.00 -- which are produced by
LLVM's resource compiler, for example -- it chokes because of the
IMAGE_SYM_ABSOLUTE section that it doesn't know how to deal with. Since
@feat.00 is just a marking anyway, skip IMAGE_SYM_ABSOLUTE sections that
are called @feat.00.

Change-Id: I1d7bfcf6001186c53e2c487c5ac251ca65efefee
Reviewed-on: https://go-review.googlesource.com/c/go/+/268239
Run-TryBot: Jason A. Donenfeld <e7e312fea4c2c1aad2bb075d739111890e1ce08b@zx2c4.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
Trust: Alex Brainman <54ba58c8441b5eff861de6b4e5ee46baf086b142@gmail.com>
Trust: Jason A. Donenfeld <e7e312fea4c2c1aad2bb075d739111890e1ce08b@zx2c4.com>

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