背景
go1.13升级为go1.16后,go build报错如下:
/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/usr/bin/ld: /tmp/go-link-852636201/000012.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
附录
1.go1.16升级编译失败问题_luckydoit的博客-程序员宅基地
原创文章转载请注明出处: go1.16升级编译失败问题