mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
* elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
keep relocs for undefined syms if there are no dynamic sections in executable. * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2001-08-03 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
From H.J. Lu <hjl@gnu.org>
|
||||||
|
* elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
|
||||||
|
keep relocs for undefined syms if there are no dynamic sections in
|
||||||
|
executable.
|
||||||
|
* elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
|
||||||
|
|
||||||
2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
|
2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
|
||||||
|
|
||||||
* cofflink.c (coff_link_check_ar_symbols): also search for
|
* cofflink.c (coff_link_check_ar_symbols): also search for
|
||||||
@ -138,7 +146,7 @@
|
|||||||
2001-06-29 H.J. Lu <hjl@gnu.org>
|
2001-06-29 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
|
* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
|
||||||
hplink->sgot is NULL before filling GOT. Checck if hplink->splt
|
hplink->sgot is NULL before filling GOT. Check if hplink->splt
|
||||||
is NULL before filling PLT.
|
is NULL before filling PLT.
|
||||||
|
|
||||||
2001-06-29 Alan Modra <amodra@bigpond.net.au>
|
2001-06-29 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
@ -2141,8 +2141,9 @@ allocate_plt_and_got_and_discard_relocs (h, inf)
|
|||||||
if (!info->shared
|
if (!info->shared
|
||||||
&& (h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0
|
&& (h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0
|
||||||
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
|
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
|
||||||
|| h->root.type == bfd_link_hash_undefweak
|
|| (hplink->root.dynamic_sections_created
|
||||||
|| h->root.type == bfd_link_hash_undefined))
|
&& (h->root.type == bfd_link_hash_undefweak
|
||||||
|
|| h->root.type == bfd_link_hash_undefined))))
|
||||||
{
|
{
|
||||||
/* Make sure this symbol is output as a dynamic symbol.
|
/* Make sure this symbol is output as a dynamic symbol.
|
||||||
Undefined weak syms won't yet be marked as dynamic. */
|
Undefined weak syms won't yet be marked as dynamic. */
|
||||||
|
@ -1199,8 +1199,9 @@ allocate_plt_and_got_and_discard_relocs (h, inf)
|
|||||||
if (!info->shared
|
if (!info->shared
|
||||||
&& (h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0
|
&& (h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0
|
||||||
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
|
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0
|
||||||
|| h->root.type == bfd_link_hash_undefweak
|
|| (htab->root.dynamic_sections_created
|
||||||
|| h->root.type == bfd_link_hash_undefined))
|
&& (h->root.type == bfd_link_hash_undefweak
|
||||||
|
|| h->root.type == bfd_link_hash_undefined))))
|
||||||
{
|
{
|
||||||
/* Make sure this symbol is output as a dynamic symbol.
|
/* Make sure this symbol is output as a dynamic symbol.
|
||||||
Undefined weak syms won't yet be marked as dynamic. */
|
Undefined weak syms won't yet be marked as dynamic. */
|
||||||
|
Reference in New Issue
Block a user