Hello Sergey,

 

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/

 

Thanks,

Scott

 

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] <mailto:[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