On 22/08/2017 13:59, Laszlo Ersek wrote: > This seems to suggest that "-pie" is the *master* switch (used only when > linking), and "-fpie" is a *prerequisite* for it (to be used both when > linking and compiling). Is this right? > > If so, then I think this is a gcc usability bug. We don't generally > start our thinking from the linker side. The above implies that the > simple (hosted) command line: > > $ gcc -o example -fpie source1.c source2.c > > could also result in miscompilation, because "-pie" is not given, only > "-fpie".
No, GCC should add -pie on its own. Paolo _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel