On 2014-11-07 07:33:24, Scott Duplichan wrote: > The summary of the 4 changes needed is not detailed enough for easy > application. Instead, apply this patch: > > http://sourceforge.net/projects/edk2developertoolsforwindows/files/Patches/ > Link%20Time%20Optimization/
Patches should be contributed using the process documented in BaseTools/Contributions.txt. Otherwise, we cannot use the contribution. The work looks promising though! :) Other feedback: What is up with all the environment variables? It seems to be to allow GCC49 to be used with/without lto... Instead, I think we should do one of these: * Convert GCC49 to LTO only * Wait for GCC50 to enable LTO * Add GCC49LTO -Jordan > From: Sergey Isakov [mailto:[email protected]] > Sent: Friday, November 07, 2014 07:06 AM > To: [email protected] > Subject: Re: [edk2] Status of gcc link time optimization for EDK2 use > > > > 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
