luc-blaeser wrote: Thanks for following up. I was thinking of a case where a pointer to static data of DSO would be exported. But then the codegen should not use approach (2) if I understand correctly. https://github.com/llvm/llvm-project/pull/104920