* gold and -flto option
@ 2012-05-18 15:19 Enrico Scholz
2012-05-18 15:57 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Enrico Scholz @ 2012-05-18 15:19 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gold and -flto option
2012-05-18 15:19 gold and -flto option Enrico Scholz
@ 2012-05-18 15:57 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2012-05-18 15:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, May 18, 2012 at 8:19 AM, Enrico Scholz
<enrico.scholz@sigma-chemnitz.de> wrote:
> 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
>
you need something like
https://lists.yoctoproject.org/pipermail/poky/2012-January/007488.html
this needs to go into OE-Core in some form.
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-18 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18 15:19 gold and -flto option Enrico Scholz
2012-05-18 15:57 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox