X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=binutils%2Farsup.c;h=75549bba1189d24053fbaa783fb2e588e858ecae;hb=11fa9f134fd658075c6f74499c780df045d9e9ca;hp=9c6953ef8d9d216e158b562eb1f0ea68bf2cc3ae;hpb=5cd84a722e09f301d1e134d075e1cfa421db08d6;p=binutils-gdb.git diff --git a/binutils/arsup.c b/binutils/arsup.c index 9c6953ef8d9..75549bba118 100644 --- a/binutils/arsup.c +++ b/binutils/arsup.c @@ -1,5 +1,5 @@ /* arsup.c - Archive support for MRI compatibility - Copyright 1992-2013 2008 Free Software Foundation, Inc. + Copyright (C) 1992-2019 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -96,7 +96,7 @@ map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list) static void ar_directory_doer (bfd *abfd, bfd *ignore ATTRIBUTE_UNUSED) { - print_arelt_descr(outfile, abfd, verbose); + print_arelt_descr(outfile, abfd, verbose, FALSE); } void @@ -254,8 +254,13 @@ ar_addmod (struct list *list) { while (list) { - bfd *abfd = bfd_openr (list->name, NULL); + bfd *abfd; +#if BFD_SUPPORTS_PLUGINS + abfd = bfd_openr (list->name, "plugin"); +#else + abfd = bfd_openr (list->name, NULL); +#endif if (!abfd) { fprintf (stderr, _("%s: can't open file %s\n"), @@ -367,7 +372,7 @@ ar_replace (struct list *list) if (FILENAME_CMP (member->filename, list->name) == 0) { /* Found the one to replace. */ - bfd *abfd = bfd_openr (list->name, 0); + bfd *abfd = bfd_openr (list->name, NULL); if (!abfd) { @@ -391,7 +396,7 @@ ar_replace (struct list *list) if (!found) { - bfd *abfd = bfd_openr (list->name, 0); + bfd *abfd = bfd_openr (list->name, NULL); fprintf (stderr,_("%s: can't find module file %s\n"), program_name, list->name); @@ -473,7 +478,7 @@ ar_extract (struct list *list) if (!found) { - bfd_openr (list->name, 0); + bfd_openr (list->name, NULL); fprintf (stderr, _("%s: can't find module file %s\n"), program_name, list->name); }