From: Ian Lance Taylor Date: Mon, 31 Mar 1997 21:12:54 +0000 (+0000) Subject: * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34c6830141b591ef4a8cb215a94f3bc1ee971e1b;p=binutils-gdb.git * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a symbol index for a R_IHCONST reloc. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e535cb14797..3f8468d0c19 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 31 16:11:35 1997 Ian Lance Taylor + + * 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 * targmatch.sed: Do not use \(\) recursively. diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index b1d15dcde75..7b783f00cd9 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -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];