I used "v" and progressed a little
The problem seems to be that linker is called with -fwhopr or -flto as
command line option.
ld -fwhopr .....
Linker find '-f' and complains.
I assume this is not a valid option for ld? Or is my linker wrong
version or something?
Note this is cross compile toolchain.
Andy
Dave Korn wrote:
Andrew Hutchinson wrote:
When AVR target is built, without explicitly disabling LTO, it will
produce 1000's of testsuite failures of -LTO -WHOPR tests with this
compilation error:
"ld: -f may not be used without -shared"
Any idea what is wrong or how to make LTO work correctly here?
The standard way to be proceed would be: add -v to the command-line in the
PR; find out what is actually getting passed to ld; figure out what kind of
specs-processing accident (most likely) is causing ld to receive a -f option.
cheers,
DaveK