From 6fa052f0483dfa6a9f57e530983aef1349a670a3 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 15 Feb 2011 09:35:42 +0000 Subject: [PATCH] 2011-02-15 Tristan Gingold * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment. --- bfd/ChangeLog | 4 ++++ bfd/vms-alpha.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4c73deea2d3..1ab968c295f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2011-02-15 Tristan Gingold + + * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment. + 2011-02-15 Alan Modra * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 322de62c2bd..b8ae26d4618 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -8255,7 +8255,10 @@ alpha_vms_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info) return FALSE; if (element->archive_pass == -1 || element->archive_pass == pass) - continue; + { + /* Next symbol if this archive is wrong or already handled. */ + continue; + } if (! bfd_check_format (element, bfd_object)) { -- 2.30.2