Fix a problem running the archiver program in MRI mode on archives containing LTO...
authorNick Clifton <nickc@redhat.com>
Mon, 19 Apr 2021 16:38:39 +0000 (17:38 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Apr 2021 16:38:39 +0000 (17:38 +0100)
PR 21702
* arsup.c (ar_addmod): Enable plugin support, if available.

binutils/ChangeLog
binutils/arsup.c

index b0b7115feb8afe93c282a901ebb84d0ed64165c9..c7914e48fd3fbe83418c90df2746d268bed9b9da 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-19  Nick Clifton  <nickc@redhat.com>
+
+       PR 21702
+       * arsup.c (ar_addmod): Enable plugin support, if available.
+
 2021-04-19  Nick Clifton  <nickc@redhat.com>
 
        * rename.c: (get_stat_atime_ns): Add prototype.
index 5cf34e2c112c1aba715eab5d373d65c10f6ed6a9..1d4d1ac70b039e6a3e3803ad5e23a04f6b0f1747 100644 (file)
@@ -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)
            {