SHA256
1
0
forked from pool/binutils

- binutils-2.24-auto-plugin.diff: Update from git commit that went

to trunk.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=160
This commit is contained in:
Richard Biener 2014-04-03 10:58:41 +00:00 committed by Git OBS Bridge
parent d531143ff6
commit 3efc9a02e6
20 changed files with 127 additions and 28 deletions

View File

@ -1,30 +1,16 @@
From: Markus Trippelsdorf <markus at trippelsdorf dot de>
To: binutils at sourceware dot org
Subject: [PATCH] PR14698: Load gcc's bfd-plugin automatically
commit 92b1b67865c719e83d12578e584ca5e20d172eac
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Thu Apr 3 11:33:17 2014 +0100
Now that gcc has switched to "slim" LTO objects by default, it is
essential that ar, nm and ranlib always use the plugin.
Although gcc provides wrappers for this purpose, they are buggy and
superfluous. Binutils already has the ability to load plugins from the
lib/bfd-plugins directory, but unfortunately this only works if ar, nm
and ranlib are invoked on non-ELF files at the moment (so the LLVM gold
plugin works fine already).
The following patch allows one to place the gcc's liblto_plugin in the
lib/bfd-plugins directory and have it loaded by default (as long as the
--target option isn't used).
Please apply if the patch looks acceptable.
Thanks.
2014-01-20 Markus Trippelsdorf <markus@trippelsdorf.de>
PR binutils/14698
ar.c: Set plugin_target early if plugins are supported.
nm.c: Likewise.
This patch allows one to place the gcc's liblto_plugin in the lib/bfd-plugins directory
and have it loaded by default (as long as the --target option isn't used).
PR binutils/14698
ar.c: Set plugin_target early if plugins are supported.
nm.c: Likewise.
diff --git a/binutils/ar.c b/binutils/ar.c
index a11ed15c86bc..f0feaef5b233 100644
index 69f20f9..ebd9528 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -138,7 +138,11 @@ static int show_version = 0;
@ -56,10 +42,10 @@ index a11ed15c86bc..f0feaef5b233 100644
#else
fprintf (stderr, _("sorry - this program has been built without plugin support\n"));
diff --git a/binutils/nm.c b/binutils/nm.c
index 156194f21de7..876bbed7a407 100644
index 15c48a3..2a44a84 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -177,7 +177,11 @@ static char other_format[] = "%02x";
@@ -175,7 +175,11 @@ static char other_format[] = "%02x";
static char desc_format[] = "%04x";
static char *target = NULL;
@ -72,7 +58,7 @@ index 156194f21de7..876bbed7a407 100644
/* Used to cache the line numbers for a BFD. */
static bfd *lineno_cache_bfd;
@@ -1648,7 +1652,6 @@ main (int argc, char **argv)
@@ -1646,7 +1650,6 @@ main (int argc, char **argv)
case OPTION_PLUGIN: /* --plugin */
#if BFD_SUPPORTS_PLUGINS
@ -80,4 +66,3 @@ index 156194f21de7..876bbed7a407 100644
bfd_plugin_set_plugin (optarg);
#else
fatal (_("sorry - this program has been built without plugin support\n"));

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 3 10:56:19 UTC 2014 - rguenther@suse.com
- binutils-2.24-auto-plugin.diff: Update from git commit that went
to trunk.
-------------------------------------------------------------------
Wed Mar 26 15:29:34 UTC 2014 - matz@suse.de