It is very interesting and I hope someone can apply this to EDK2. I failed.
I created gcc-4.9.2 for linux-gnu target with --enable-plugin. And binutils 
with --enable-plugins. Success.
But option -flto brakes building. 
This advice
---------
2) Use gcc to launch the ld instead of invoking ld directly
-----------
failed because of build options for ld
-----
x86_64-linux-gnu-gcc: error: unrecognized command line option '-Map'
x86_64-linux-gnu-gcc: error: unrecognized command line option '-melf_x86_64'
x86_64-linux-gnu-gcc: error: unrecognized command line option 
'--oformat=elf64-x86-64'
x86_64-linux-gnu-gcc: error: unrecognized command line option '-('
-----
and so on.
Using ld I got another problems like  error adding symbols: Bad value
As well as losing _ModuleEntryPoint or .text section at all.

I pass waiting for a good news.



On 07.11.2014, at 9:05, Scott Duplichan wrote:

> http://notabs.org/uefi/gcc-lto.htm
> 
> Thanks,
> Scott
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to