go: add upstream fixes for usage in CLANGARM64.
go: add upstream fixes for usage in CLANGARM64.

These issues only cropped up when linking Go binaries with clang/lld on
ARM64 (which is required in order to make a DLL).

JPeterMugaas/MINGW-packages,JPeterMugaas/MINGW-packages,Alexpux/MINGW-packages,lhmouse/MINGW-packages,Alexpux/MINGW-packages,oscarfv/MINGW-packages,oroppas/MINGW-packages,stahta01/MINGW-packages,oroppas/MINGW-packages,JPeterMugaas/MINGW-packages,Alexpux/MINGW-packages,oscarfv/MINGW-packages,oroppas/MINGW-packages,oroppas/MINGW-packages,lhmouse/MINGW-packages,lhmouse/MINGW-packages,fabiangreffrath/MINGW-packages,fabiangreffrath/MINGW-packages,oroppas/MINGW-packages,fabiangreffrath/MINGW-packages,stahta01/MINGW-packages,lhmouse/MINGW-packages,oroppas/MINGW-packages,stahta01/MINGW-packages,JPeterMugaas/MINGW-packages,Alexpux/MINGW-packages,fabiangreffrath/MINGW-packages,lhmouse/MINGW-packages,oscarfv/MINGW-packages,oscarfv/MINGW-packages,oscarfv/MINGW-packages,Alexpux/MINGW-packages,Alexpux/MINGW-packages,lhmouse/MINGW-packages,stahta01/MINGW-packages,oscarfv/MINGW-packages,stahta01/MINGW-packages,fabiangreffrath/MINGW-packages,fabiangreffrath/MINGW-packages,JPeterMugaas/MINGW-packages,stahta01/MINGW-packages,JPeterMugaas/MINGW-packages