I don't think you need to set the linkage here. At least, it's not done on the master branch: https://github.com/axw/llgo/blob/master/compiler.go#L130