[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/13278] --plugin doesn't work on archive
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/13278] --plugin doesn't work on archive |
Date: |
Sat, 15 Oct 2011 21:06:50 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13278
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-15 21:06:50
UTC ---
open_inarch sets the target from the first object on the list even when
the target has been set. This patch works for me:
diff --git a/binutils/ar.c b/binutils/ar.c
index 7b3c3fa..5efc6b6 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -815,9 +815,9 @@ open_inarch (const char *archive_filename, const char
*file)
return NULL;
}
- /* Try to figure out the target to use for the archive from the
- first object on the list. */
- if (file != NULL)
+ /* If the target isn't set, try to figure out the target to use
+ for the archive from the first object on the list. */
+ if (target == NULL && file != NULL)
{
bfd *obj;
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug binutils/13278] New: --plugin doesn't work on archive, hjl.tools at gmail dot com, 2011/10/10
- [Bug binutils/13278] --plugin doesn't work on archive, andi-bz at firstfloor dot org, 2011/10/10
- [Bug binutils/13278] --plugin doesn't work on archive, hjl.tools at gmail dot com, 2011/10/10
- [Bug binutils/13278] --plugin doesn't work on archive, cvs-commit at gcc dot gnu.org, 2011/10/11
- [Bug binutils/13278] --plugin doesn't work on archive, amodra at gmail dot com, 2011/10/11
- [Bug binutils/13278] --plugin doesn't work on archive, hjl.tools at gmail dot com, 2011/10/15
- [Bug binutils/13278] --plugin doesn't work on archive,
hjl.tools at gmail dot com <=
- [Bug binutils/13278] --plugin doesn't work on archive, cvs-commit at gcc dot gnu.org, 2011/10/16
- [Bug binutils/13278] --plugin doesn't work on archive, hjl.tools at gmail dot com, 2011/10/17
- [Bug binutils/13278] --plugin doesn't work on archive, cvs-commit at gcc dot gnu.org, 2011/10/24
- [Bug binutils/13278] --plugin doesn't work on archive, cvs-commit at gcc dot gnu.org, 2011/10/24