[PATCH] D18183: [ELF] - -pie/--pic-executable option implemented
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 16:12:43 PDT 2016
On 15 March 2016 at 11:23, Rui Ueyama <ruiu at google.com> wrote:
> ruiu added inline comments.
>
> ================
> Comment at: ELF/Driver.cpp:150-151
> @@ +149,4 @@
> + error("-shared and -pie may not be used together");
> + if (Config->Static)
> + error("-static and -pie may not be used together");
> + }
> ----------------
> Why is -pie incompatible with -static?
It is not fundamentally so. A static program can be self relocating
and openbsd has static pie binaries.
Cheers,
Rafael
More information about the llvm-commits
mailing list