pull linkage emission code out to a new EmitLinkage function.