* coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a

symbol index for a R_IHCONST reloc.
This commit is contained in:
Ian Lance Taylor 1997-03-31 21:12:54 +00:00
parent 774dc17cdc
commit 34c6830141
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
* coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
symbol index for a R_IHCONST reloc.
Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* targmatch.sed: Do not use \(\) recursively.

View File

@ -353,7 +353,7 @@ coff_a29k_relocate_section (output_bfd, info, input_bfd, input_section,
symndx = rel->r_symndx;
loc = contents + rel->r_vaddr - input_section->vma;
if (symndx == -1)
if (symndx == -1 || rel->r_type == R_IHCONST)
h = NULL;
else
h = obj_coff_sym_hashes (input_bfd)[symndx];