https://bugzilla.redhat.com/show_bug.cgi?id=1087621
When running the ./misc/cgo/test of go test -ldflags -linkmode=internal
,
on glibc-2.19.90-12.fc21.i686, inside of build chroot,
the test fails with
# testmain
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_goCallback
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_goFoo
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_goStackCheck
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_Add
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_ReturnIntLong
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_BackIntoGo
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_BackgroundSleep
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportbyte
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportbool
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportrune
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exporterror
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportint
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportuint
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportuintptr
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportint8
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportuint8
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportint16
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportuint16
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportint32
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportuint32
_/go/misc/cgo/test(.text): unexpected GOT reloc for non-dynamic symbol _cgoexp_9a470ea86cc6_exportint64
too many errors
FAIL _/go/misc/cgo/test [build failed]
Which appears to only be in a darwin branch of the logic.