From 2a41f39647f1867470ccbd13f1ccc429422dde55 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 7 Jun 2011 23:57:50 +0000 Subject: [PATCH] * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and indirect links here. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 56267c47eb8..04f5013c79c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-06-08 Alan Modra + + * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and + indirect links here. + 2011-06-07 Joel Brobecker * irix-core.c (irix_core_vec): Add match_priority field. diff --git a/bfd/elflink.c b/bfd/elflink.c index e8a6840c158..562217d3e11 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4911,7 +4911,7 @@ _bfd_elf_archive_symbol_lookup (bfd *abfd, char *p, *copy; size_t len, first; - h = elf_link_hash_lookup (elf_hash_table (info), name, FALSE, FALSE, FALSE); + h = elf_link_hash_lookup (elf_hash_table (info), name, FALSE, FALSE, TRUE); if (h != NULL) return h; @@ -4934,14 +4934,14 @@ _bfd_elf_archive_symbol_lookup (bfd *abfd, memcpy (copy, name, first); memcpy (copy + first, name + first + 1, len - first); - h = elf_link_hash_lookup (elf_hash_table (info), copy, FALSE, FALSE, FALSE); + h = elf_link_hash_lookup (elf_hash_table (info), copy, FALSE, FALSE, TRUE); if (h == NULL) { /* We also need to check references to the symbol without the version. */ copy[first - 1] = '\0'; h = elf_link_hash_lookup (elf_hash_table (info), copy, - FALSE, FALSE, FALSE); + FALSE, FALSE, TRUE); } bfd_release (abfd, copy); -- 2.30.2