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