* elflink.c (evaluate_complex_relocation_symbols): Ignore relocs

with a zero symbol index.
This commit is contained in:
Alan Modra 2007-02-12 11:18:11 +00:00
parent 8da3dbc59a
commit 4aac632ee9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-12 Alan Modra <amodra@bigpond.net.au>
* elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
with a zero symbol index.
2007-02-12 Alan Modra <amodra@bigpond.net.au>
* elflink.c (bfd_elf_discard_info): Tidy setting of "eh".

View File

@ -6769,7 +6769,10 @@ evaluate_complex_relocation_symbols (bfd * input_bfd,
index = ELF32_R_SYM (rel->r_info);
if (bed->s->arch_size == 64)
index >>= 24;
if (index == STN_UNDEF)
continue;
if (index < locsymcount)
{
/* The symbol is local. */