mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
* elf64-ppc.c (ppc64_elf_relocate_section): Return false for
unresolved relocs. (ppc64_elf_size_dynamic_sections): Check for splt NULL.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-05-22 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-ppc.c (ppc64_elf_relocate_section): Return false for
|
||||||
|
unresolved relocs.
|
||||||
|
(ppc64_elf_size_dynamic_sections): Check for splt NULL.
|
||||||
|
|
||||||
2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
* bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
|
* bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
|
||||||
|
@ -3897,7 +3897,7 @@ ppc64_elf_size_dynamic_sections (output_bfd, info)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (htab->splt->_raw_size != 0)
|
if (htab->splt != NULL && htab->splt->_raw_size != 0)
|
||||||
{
|
{
|
||||||
if (!add_dynamic_entry (DT_PLTGOT, 0)
|
if (!add_dynamic_entry (DT_PLTGOT, 0)
|
||||||
|| !add_dynamic_entry (DT_PLTRELSZ, 0)
|
|| !add_dynamic_entry (DT_PLTRELSZ, 0)
|
||||||
@ -5716,12 +5716,15 @@ ppc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
&& !(info->shared
|
&& !(info->shared
|
||||||
&& (input_section->flags & SEC_DEBUGGING) != 0
|
&& (input_section->flags & SEC_DEBUGGING) != 0
|
||||||
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0))
|
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) != 0))
|
||||||
|
{
|
||||||
(*_bfd_error_handler)
|
(*_bfd_error_handler)
|
||||||
(_("%s(%s+0x%lx): unresolvable relocation against symbol `%s'"),
|
(_("%s(%s+0x%lx): unresolvable relocation against symbol `%s'"),
|
||||||
bfd_archive_filename (input_bfd),
|
bfd_archive_filename (input_bfd),
|
||||||
bfd_get_section_name (input_bfd, input_section),
|
bfd_get_section_name (input_bfd, input_section),
|
||||||
(long) rel->r_offset,
|
(long) rel->r_offset,
|
||||||
h->root.root.string);
|
h->root.root.string);
|
||||||
|
ret = false;
|
||||||
|
}
|
||||||
|
|
||||||
r = _bfd_final_link_relocate (ppc64_elf_howto_table[(int) r_type],
|
r = _bfd_final_link_relocate (ppc64_elf_howto_table[(int) r_type],
|
||||||
input_bfd,
|
input_bfd,
|
||||||
|
Reference in New Issue
Block a user