mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
PR ld/13311
* elflink.c (elf_link_output_extsym): Correct test for warning when forced local executable syms are referenced from shared libraries.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user