* 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 e535cb147977c78d80c31343f4fc1c247f5ef3c6..3f8468d0c19d60636894d7333c8900efcb995405 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 b1d15dcde75667e364fae12cbbc4087c68fd8c1e..7b783f00cd9f83b17416ee6e4c6e255c0448e00f 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];