Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
To: openembedded-core@lists.openembedded.org
Subject: gold and -flto option
Date: Fri, 18 May 2012 17:19:07 +0200	[thread overview]
Message-ID: <lyfwaxfrf8.fsf@ensc-virt.intern.sigma-chemnitz.de> (raw)

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



             reply	other threads:[~2012-05-18 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18 15:19 Enrico Scholz [this message]
2012-05-18 15:57 ` gold and -flto option Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lyfwaxfrf8.fsf@ensc-virt.intern.sigma-chemnitz.de \
    --to=enrico.scholz@sigma-chemnitz.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox