mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
MIPS/BFD: Remove extraneous undefined weak symbol visibility check
Remove an extraneous symbol visibility check made for undefined weak symbols in determination whether an R_MIPS_REL32 dynamic relocation has to be placed in output, complementing commit ad9512030937 ("mips: Check UNDEFWEAK_NO_DYNAMIC_RELOC"). That check duplicates one already made by the UNDEFWEAK_NO_DYNAMIC_RELOC macro as a part of a broader condition used to decide if to enter undefined weak symbols to the dynamic symbol table or not. bfd/ * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol visibility check made for undefined weak symbols.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-06-29 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
|
* elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
|
||||||
|
visibility check made for undefined weak symbols.
|
||||||
|
|
||||||
2018-06-26 Nick Clifton <nickc@redhat.com>
|
2018-06-26 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/uk.po: Updated Ukranian translation.
|
* po/uk.po: Updated Ukranian translation.
|
||||||
|
@ -8951,10 +8951,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
|
|||||||
|
|
||||||
if (h->root.type == bfd_link_hash_undefweak)
|
if (h->root.type == bfd_link_hash_undefweak)
|
||||||
{
|
{
|
||||||
/* Do not copy relocations for undefined weak symbols with
|
/* Do not copy relocations for undefined weak symbols that
|
||||||
non-default visibility. */
|
we are not going to export. */
|
||||||
if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
|
if (UNDEFWEAK_NO_DYNAMIC_RELOC (info, h))
|
||||||
|| UNDEFWEAK_NO_DYNAMIC_RELOC (info, h))
|
|
||||||
do_copy = FALSE;
|
do_copy = FALSE;
|
||||||
|
|
||||||
/* Make sure undefined weak symbols are output as a dynamic
|
/* Make sure undefined weak symbols are output as a dynamic
|
||||||
|
Reference in New Issue
Block a user