We were emitting relative references to entities that might be in another translation unit. Use a GOT entry or thunk where appropriate. Fixes <rdar://problem/45901706>.