Thank you David and Rafel

I will dig further into collect2.  I had noted that avr.h has the following:


/* This is undefined macro for collect2 disabling */
#define LINKER_NAME "ld"

That's indeed going to break LTO.

Richard.

That seems to be the key issue.
Without #define LINKER_NAME, AVR is running LTO/WHOPR tests ok ! (No idea if it does anything useful though)

Now to figure out why it was added in 2000 (rth). Hopefully Eric Weddington or Denis might have some idea and perhaps know if it still has a purpose.

Andy




Reply via email to