Instantly share code, notes, and snippets.

Embed
What would you like to do?
Workaround for go cent 5.x kernel 2.6.18-238.el5 vDSO gettimeofday
# Patch the Go runtime package to disable vDSO support for gettimeofday and clock_gettime in order to make compiled Go applications compatible with the buggy CentOS 5.6 kernel: 2.6.18-238.el5
sed -i 's/nelem(sym_keys)/1/g' /usr/local/go/src/runtime/vdso_linux_amd64.c
# Rebuild go
usr/local/go/src/make.bash
# Rebuild your binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment