* coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
authorIan Lance Taylor <ian@airs.com>
Mon, 31 Mar 1997 21:12:54 +0000 (21:12 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 31 Mar 1997 21:12:54 +0000 (21:12 +0000)
symbol index for a R_IHCONST reloc.

bfd/ChangeLog
bfd/coff-a29k.c

index e535cb1..3f8468d 100644 (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.
index b1d15dc..7b783f0 100644 (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];