Different TU's may have this globl var. appending linkage can
only be used with lld recognized special variables.
Change it to internal linkage.
Paths 
  |  Differential  D124466  
[CUDA][HIP] Fix linkage of __clang_gpu_used_external ClosedPublic Authored by yaxunl on Apr 26 2022, 10:10 AM. 
Details 
 Summary Different TU's may have this globl var. appending linkage can Change it to internal linkage. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Apr 26 2022, 11:43 AM Closed by commit rG57a210e5b705: [CUDA][HIP] Fix linkage of __clang_gpu_used_external (authored by yaxunl).  ·  Explain WhyApr 26 2022, 5:44 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 425371 clang/lib/CodeGen/CodeGenModule.cpp
 
 clang/test/CodeGenCUDA/host-used-extern.cu
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||