I've committed a patch to libgo to update to the current version of the master Go library. The patch is too large to include here, and is in any case simply a copy of changes available in the master Go library repository. See SVN or http://codereview.appspot.com/4281068/ for the changes as applied to libgo.
Ian