On 01/02/2011 14:30, Joel Sherrill wrote: > On 02/01/2011 04:54 AM, Dave Korn wrote: >> On 01/02/2011 02:33, Joel Sherrill wrote:
>>> Should LTO work with a target not using gold? >> Yes, it should, but some work is needed at the binutils end. I am >> testing >> the attached two patches at the moment; the idea is to have >> fully-debugged >> support for LTO+plugin in the 2.20.1 release, to support 4.6.0 when it >> comes out. >> > There are still some rtems targets which need to finish from the > last full build. But I will try your patches once that is done. > > If it is still broken, what do you need gathered up to have a test case? Depends exactly how it's broken. If it looks like a linker bug, the thing to do is re-run the failing command line with "-v -Wl,-v -Wl,--verbose --save-temps", and bundle up all the generated files along with a log of the build. That way I can re-run (and debug) the failing link using just a cross-binutils aimed at the target. cheers, DaveK