[LLVMdev] How to handle aliases?

Anton Korobeynikov anton at korobeynikov.info
Thu Oct 10 15:15:20 PDT 2013


> The fundamental issue is that aliasing in object files have fairly
> complex semantics. For example, on ELF if a symbol is defined in a
> COMDAT in one object file, it must be defined in every object file
> that has that COMDAT.
>
> Given that weak symbols get implemented with COMDATs, the actual rule
> at the llvm level would have to be something like
Pretty weird... I believe the proper solution is indeed to support
comdat groups at IR level.
-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list