kzhuravl added a comment. I thought we could override `isPICDefault` in AMDGPUToolChain instead of doing what is posted. But AMDGPUToolChain is only created for AMDHSA OS. Do we want to enable PIC by default for all AMDGCNs? Or only for AMDHSA? https://reviews.llvm.org/D43094