Ard:
  I see Steven says it doesn't work, yet. So, I am curious what real issue is 
resolved by this patch?

Thanks
Liming
> -----Original Message-----
> From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org]
> Sent: Wednesday, August 03, 2016 4:23 PM
> To: Gao, Liming <liming....@intel.com>
> Cc: Zhu, Yonghong <yonghong....@intel.com>; Justen, Jordan L
> <jordan.l.jus...@intel.com>; edk2-devel@lists.01.org;
> leif.lindh...@linaro.org; sigmaepsilo...@gmail.com
> Subject: Re: [PATCH 0/3] BaseTools GCC: pass CC flags to linker
> 
> On 2 August 2016 at 16:51, Ard Biesheuvel <ard.biesheu...@linaro.org>
> wrote:
> > On 2 August 2016 at 16:50, Gao, Liming <liming....@intel.com> wrote:
> >> Ard:
> >>   Without this change, GCC5 LTO can pass build. With it, what difference
> will be in the generated image? Original way may generate the wrong image,
> or new way will generate the smaller image?
> >>
> >
> > This is not about code size but about correctness. Compiler switches
> > for code model or alignment etc may affect the way code is generated
> > at link time by the LTO routines.
> 
> Note that Steven mentions a similar problem in his CLANG38 series: he
> needs to pass -pie to the linker (or -fpie would be sufficient, I
> suspect) to prevent the linker from using the wrong code model when
> generating code from the LTO bytecode.
> 
> Thanks,
> Ard.
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to