Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] Add support for gold linker and LTO for GCC.
Date: Wed, 11 Jun 2014 06:16:14 +0300	[thread overview]
Message-ID: <20140611031614.GT4074@tarshish> (raw)
In-Reply-To: <BLU436-SMTP187DA10D0CB5B02F7E271EEA8280@phx.gbl>

Hi Steve,

On Tue, Jun 10, 2014 at 10:13:24PM +0000, Steve Thomas wrote:
> Link Time Optimisations (LTO) from GCC needs the linker plugin. It also
> needs support from the tools, in particular the archiver (AR) to
> properly form archives that can be used by the linker.  The linker needs
> to support the plugin also.
> 
> This patch changes the linker from BFD to GOLD and wraps the ar, nm and
> ranlib utilities with a wrapper that calls the gcc-wrapper version that
> call the actual utilities with an additional argument. This is a
> temporary measure until the GCC versions supoort this properly and saves
> having to modify a few hundres packages.
> 
> Signed-off-by: Steve Thomas <scjthm@live.com>
> ---
>  package/binutils/Config.in.host         |  4 ++++
>  package/binutils/binutils.mk            | 12 +++++++++++
>  package/gcc/4.8.3/950-lto-support.patch | 35 +++++++++++++++++++++++++++++++++
>  package/gcc/4.9.0/950-lto-support.patch | 35 +++++++++++++++++++++++++++++++++
>  package/gcc/Config.in.host              | 19 +++++++++++-------
>  package/gcc/gcc-initial/gcc-initial.mk  | 18 +++++++++++++++++
>  package/gcc/gcc.mk                      | 11 +++++++++++
>  toolchain/toolchain-buildroot/Config.in | 11 +++++++++++
>  8 files changed, 138 insertions(+), 7 deletions(-)
>  create mode 100644 package/gcc/4.8.3/950-lto-support.patch
>  create mode 100644 package/gcc/4.9.0/950-lto-support.patch
> 
> diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
> index 08540a3..a6e5ba6 100644
> --- a/package/binutils/Config.in.host
> +++ b/package/binutils/Config.in.host
> @@ -1,5 +1,8 @@
>  comment "Binutils Options"
>  
> +config BR2_BINUTILS_SUPPORTS_GOLD
> +	bool "binutils 2.24"

Are you sure this needs to be user selectable? The comment string looks 
confusing, anyway.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2014-06-11  3:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10 22:13 [Buildroot] [PATCH 1/1] Add support for gold linker and LTO for GCC Steve Thomas
2014-06-11  3:16 ` Baruch Siach [this message]
     [not found]   ` <SNT146-W9705D7538E5C63461FC6CA82B0@phx.gbl>
2014-06-12  3:05     ` Baruch Siach
2014-06-12 19:54 ` Thomas Petazzoni

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=20140611031614.GT4074@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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