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.
This commit is contained in:
Nick Clifton 2021-04-19 17:38:39 +01:00
parent 8d6502d2b0
commit 229597a129
2 changed files with 9 additions and 0 deletions

View 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.

View 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)
{