OSDN Git Service

(add_local_symbol): Index in the external symbol must point to local
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Oct 1993 22:34:13 +0000 (22:34 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Oct 1993 22:34:13 +0000 (22:34 +0000)
symbol table entry for procedures.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5758 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/mips-tfile.c

index 3d91c30..b6acbf5 100644 (file)
@@ -2045,7 +2045,10 @@ add_local_symbol (str_start, str_end_p1, type, storage, value, indx)
              if (last_func_eptr)
                {
                  last_func_eptr->ifd = cur_file_ptr->file_index;
-                 last_func_eptr->asym.index = type;
+
+                 /* The index for an external st_Proc symbol is the index
+                    of the st_Proc symbol in the local symbol table.  */
+                 last_func_eptr->asym.index = psym->index;
                }
            }