mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 14:03:56 +08:00
* elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
with a zero symbol index.
This commit is contained in:
parent
8da3dbc59a
commit
4aac632ee9
@ -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".
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user