[llvm] r269909 - Don't pass a Reloc::Model to MC.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 05:26:34 PDT 2016


>> -  if (RelocM == Reloc::Static) {
>> +  if (!PositionIndependent) {
>
> ^ This comparison is not an exact rewrite. For DynamicNoPIC relocation model, it uses "__DATA,__mod_func_init" before but now it goes to "__TEXT,__constructor". Maybe a new field for whether the binary is dynamic is needed.
>

Are there any position dependent users left? Can we switch to always
using "__DATA,__mod_func_init"?

Cheers,
Rafael


More information about the llvm-commits mailing list