aboutsummaryrefslogtreecommitdiff
path: root/binutils/arsup.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-04-19 17:38:39 +0100
committerNick Clifton <nickc@redhat.com>2021-04-19 17:38:39 +0100
commit229597a129f62d5e8a101f1eed95489e2399f741 (patch)
treea208e39e9015db3128d36da6f54c4384e284ea08 /binutils/arsup.c
parent8d6502d2b0b390e38dc30142a6d7b3727febbc69 (diff)
downloadgdb-229597a129f62d5e8a101f1eed95489e2399f741.zip
gdb-229597a129f62d5e8a101f1eed95489e2399f741.tar.gz
gdb-229597a129f62d5e8a101f1eed95489e2399f741.tar.bz2
Fix a problem running the archiver program in MRI mode on archives containing LTO compiled objects.
PR 21702 * arsup.c (ar_addmod): Enable plugin support, if available.
Diffstat (limited to 'binutils/arsup.c')
-rw-r--r--binutils/arsup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/arsup.c b/binutils/arsup.c
index 5cf34e2..1d4d1ac 100644
--- a/binutils/arsup.c
+++ b/binutils/arsup.c
@@ -180,7 +180,11 @@ ar_open (char *name, int t)
bfd *element;
bfd *ibfd;
+#if BFD_SUPPORTS_PLUGINS
+ ibfd = bfd_openr (name, "plugin");
+#else
ibfd = bfd_openr (name, NULL);
+#endif
if (!ibfd)
{