X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Farsup.c;h=a668f270f1a11c3cbc0c77be6419910ece47de7b;hb=8df017996f662ce6ab23aea4abeb8f7ac1f62651;hp=0836496180a36c7fad96d5e7a187407c1393c593;hpb=2e02f29632218fc24d71fbbefc368d551d0528a7;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/arsup.c b/binutils/arsup.c index 0836496180..a668f270f1 100644 --- a/binutils/arsup.c +++ b/binutils/arsup.c @@ -1,5 +1,5 @@ /* arsup.c - Archive support for MRI compatibility - Copyright (C) 1992-2019 Free Software Foundation, Inc. + Copyright (C) 1992-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -77,8 +77,8 @@ map_over_list (bfd *arch, void (*function) (bfd *, bfd *), struct list *list) for (head = arch->archive_next; head; head = head->archive_next) { - if (head->filename != NULL - && FILENAME_CMP (ptr->name, head->filename) == 0) + if (bfd_get_filename (head) != NULL + && FILENAME_CMP (ptr->name, bfd_get_filename (head)) == 0) { found = TRUE; function (head, prev); @@ -311,7 +311,7 @@ ar_delete (struct list *list) while (member) { - if (FILENAME_CMP(member->filename, list->name) == 0) + if (FILENAME_CMP (bfd_get_filename (member), list->name) == 0) { *prev = member->archive_next; found = 1; @@ -376,7 +376,7 @@ ar_replace (struct list *list) while (member) { - if (FILENAME_CMP (member->filename, list->name) == 0) + if (FILENAME_CMP (bfd_get_filename (member), list->name) == 0) { /* Found the one to replace. */ bfd *abfd = bfd_openr (list->name, NULL); @@ -474,7 +474,7 @@ ar_extract (struct list *list) while (member && !found) { - if (FILENAME_CMP (member->filename, list->name) == 0) + if (FILENAME_CMP (bfd_get_filename (member), list->name) == 0) { extract_file (member); found = 1;