Thanks for your detailed description! I'll try to eliminate GOT related global variables.
I simply changed the linkage flag and it seems produced object files are linked well :)
OK, I'll take a look around SwiftCallingConv.cpp
. Thanks!
BTW do you know who is a right person to review around build-script? I offered @compnerd to review bootstrapping PR, but it seems he is too busy to take a look.