<p dir="ltr">.<br>
><br>
> Yes, that should be possible.  Even if the modules are compiled as<br>
> -fPIC, if they end up in an executable -fPIE can be implicitly<br>
> assumed.  Quick question though, what do you get from using -fPIC with<br>
> LTO rather than explicitly using -fPIE?</p>
<p dir="ltr">Build simplicity. We do that in llvm since some files end up being used both in libraries and executables. Otherwise we would have to compile them twice.</p>
<p dir="ltr">Cheers,<br>
Rafael</p>