[llvm-dev] Reloc::Default should trigger PIC on plateformq where PIE is the defaul

Rafael Avila de Espindola via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 9 08:15:57 PST 2017


Amaury SECHET via llvm-dev <llvm-dev at lists.llvm.org> writes:

> Pretty all is in the title. Is there a reason why this isn't done ? With
> debian and ubuntu switching to PIE by default, this is become more and more
> of a hassle to get this working properly, and I'd rather see that fixed in
> LLVM rather than in each driver that do something with it.
>
> Has someone already looked into this ? If so, what are the conclusions ?

I did some time ago. My memory is fuzzy, but I think my idea was to
remove "Default" completely and have the caller fully specify what the
desired reloc model was.

A target construction can then take an Optional<Model> and map None to
whatever default it wants.

Cheers,
Rafael


More information about the llvm-dev mailing list