* elf32-xtensa.c (elf_xtensa_relocate_section): Don't continue to the
next relocation on an undefined symbol.
This commit is contained in:
parent
7f78e23771
commit
9b8c98a411
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-04-10 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
|
* elf32-xtensa.c (elf_xtensa_relocate_section): Don't continue to the
|
||||||
|
next relocation on an undefined symbol.
|
||||||
|
|
||||||
2003-04-09 Richard Henderson <rth@redhat.com>
|
2003-04-09 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>:
|
* elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>:
|
||||||
|
|
|
@ -1893,6 +1893,7 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd,
|
||||||
bfd_reloc_status_type r;
|
bfd_reloc_status_type r;
|
||||||
bfd_boolean is_weak_undef;
|
bfd_boolean is_weak_undef;
|
||||||
bfd_boolean unresolved_reloc;
|
bfd_boolean unresolved_reloc;
|
||||||
|
bfd_boolean warned;
|
||||||
|
|
||||||
r_type = ELF32_R_TYPE (rel->r_info);
|
r_type = ELF32_R_TYPE (rel->r_info);
|
||||||
if (r_type == (int) R_XTENSA_GNU_VTINHERIT
|
if (r_type == (int) R_XTENSA_GNU_VTINHERIT
|
||||||
|
@ -1983,6 +1984,7 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd,
|
||||||
sec = NULL;
|
sec = NULL;
|
||||||
is_weak_undef = FALSE;
|
is_weak_undef = FALSE;
|
||||||
unresolved_reloc = FALSE;
|
unresolved_reloc = FALSE;
|
||||||
|
warned = FALSE;
|
||||||
|
|
||||||
if (howto->partial_inplace)
|
if (howto->partial_inplace)
|
||||||
{
|
{
|
||||||
|
@ -2039,10 +2041,7 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd,
|
||||||
(!info->shared || info->no_undefined
|
(!info->shared || info->no_undefined
|
||||||
|| ELF_ST_VISIBILITY (h->other)))))
|
|| ELF_ST_VISIBILITY (h->other)))))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
warned = TRUE;
|
||||||
/* To avoid any more warning messages, like "call out of
|
|
||||||
range", we continue immediately to the next relocation. */
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2171,7 +2170,7 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd,
|
||||||
contents, rel->r_offset, is_weak_undef,
|
contents, rel->r_offset, is_weak_undef,
|
||||||
&error_message);
|
&error_message);
|
||||||
|
|
||||||
if (r != bfd_reloc_ok)
|
if (r != bfd_reloc_ok && !warned)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue