Created attachment 434104 [details, diff] Patch to build.sh to build PIEs The following files have TEXTRELs : * /usr/bin/bsondump * /usr/bin/mongodump * /usr/bin/mongoexport * /usr/bin/mongofiles * /usr/bin/mongoimport * /usr/bin/mongooplog * /usr/bin/mongorestore * /usr/bin/mongostat * /usr/bin/mongotop Go doesn't build PIEs by default. Attached is a patch that replaces the current mongo-tools-3.2.5-build.patch to build PIEs instead. From what I saw (https://golang.org/src/cmd/go/build.go#L375), this is however currently incompatible with gccgo.
Created attachment 453390 [details, diff] mongo-tools-3.2.10-pie.patch Forward porting your patch from 3.2.5 to 3.2.10
That is in the tree now, thank you for your contribution to Gentoo Linux :)