mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
* elf64-ppc.c (allocate_dynrelocs): Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-02-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
|
||||||
|
* elf64-ppc.c (allocate_dynrelocs): Likewise.
|
||||||
|
|
||||||
2006-02-17 Alan Modra <amodra@bigpond.net.au>
|
2006-02-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
PR ld/2218
|
PR ld/2218
|
||||||
|
@ -4546,7 +4546,8 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
|
|||||||
|
|
||||||
/* Also discard relocs on undefined weak syms with non-default
|
/* Also discard relocs on undefined weak syms with non-default
|
||||||
visibility. */
|
visibility. */
|
||||||
if (h->root.type == bfd_link_hash_undefweak)
|
if (eh->dyn_relocs != NULL
|
||||||
|
&& h->root.type == bfd_link_hash_undefweak)
|
||||||
{
|
{
|
||||||
if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
|
if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
|
||||||
eh->dyn_relocs = NULL;
|
eh->dyn_relocs = NULL;
|
||||||
|
@ -7582,7 +7582,8 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
|
|||||||
|
|
||||||
/* Also discard relocs on undefined weak syms with non-default
|
/* Also discard relocs on undefined weak syms with non-default
|
||||||
visibility. */
|
visibility. */
|
||||||
if (h->root.type == bfd_link_hash_undefweak)
|
if (eh->dyn_relocs != NULL
|
||||||
|
&& h->root.type == bfd_link_hash_undefweak)
|
||||||
{
|
{
|
||||||
if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
|
if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
|
||||||
eh->dyn_relocs = NULL;
|
eh->dyn_relocs = NULL;
|
||||||
|
Reference in New Issue
Block a user