From: Alan Modra Date: Tue, 25 Oct 2011 03:13:32 +0000 (+0000) Subject: PR ld/13311 X-Git-Tag: binutils-2_22~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89892769b6c8fabf7469ac996e9e8a5db2465c43;p=thirdparty%2Fbinutils-gdb.git PR ld/13311 2011-10-19 Alan Modra * elflink.c (elf_link_output_extsym): Correct test for warning when forced local executable syms are referenced from shared libraries. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9513fb737f9..a5227905bb9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,11 @@ 2011-10-25 Alan Modra Apply mainline patches + 2011-10-19 Alan Modra + PR ld/13311 + * elflink.c (elf_link_output_extsym): Correct test for warning when + forced local executable syms are referenced from shared libraries. + 2011-10-19 Alan Modra PR ld/13254 * elflink.c (bfd_elf_final_link): Emit error_textrel error. diff --git a/bfd/elflink.c b/bfd/elflink.c index be0a6ce1cbe..dfd9b43c93c 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -8659,10 +8659,11 @@ elf_link_output_extsym (struct bfd_hash_entry *bh, void *data) /* We should also warn if a forced local symbol is referenced from shared libraries. */ - if (! finfo->info->relocatable - && (! finfo->info->shared) + if (!finfo->info->relocatable + && finfo->info->executable && h->forced_local && h->ref_dynamic + && h->def_regular && !h->dynamic_def && !h->dynamic_weak && ! elf_link_check_versioned_symbol (finfo->info, bed, h))