[OE-core] gold and -flto option
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Fri May 18 15:19:07 UTC 2012
Hi,
after enabling gold linker (ld-is-gold DISTRO_FEATURE), the '-flto
-fuse-linker-plugin' build options do not work anymore as with the old
bfd linker. I am using the toolchain layer of oe-meta.
Is this expected or just some issue with our gcc?
Enrico
---- with ld-is-gold ----
$ arm-linux-gnueabi-gcc -flto -fuse-linker-plugin /tmp/x.c
.../4.7.1/arm-linux-gnueabi-ld: -plugin: unknown option
.../4.7.1/arm-linux-gnueabi-ld: use the --help option for usage information
$ arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (GCC) 4.7.1 20120421 (prerelease)
...
$ arm-linux-gnueabi-ld --version
GNU gold (GNU Binutils 2.22) 1.11
---- without ld-is-gold ----
$ arm-linux-gnueabi-gcc -flto -fuse-linker-plugin /tmp/x.c
$
$ arm-linux-gnueabi-ld --version
GNU ld (GNU Binutils) 2.22
More information about the Openembedded-core
mailing list