From 34c6830141b591ef4a8cb215a94f3bc1ee971e1b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 31 Mar 1997 21:12:54 +0000 Subject: [PATCH] * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a symbol index for a R_IHCONST reloc. --- bfd/ChangeLog | 5 +++++ bfd/coff-a29k.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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]; -- 2.30.2