summaryrefslogtreecommitdiff
path: root/gcc/mips-tfile.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-10-12 22:34:13 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-10-12 22:34:13 +0000
commit77e723b4b5b32b5e13f15c53d565e148dd756612 (patch)
tree94513ad846c59c7f419b047b93f9cd3b46969fa1 /gcc/mips-tfile.c
parentb3fb5ad17a5e5fd9f7494c5864700f708e4608d1 (diff)
downloadgcc-77e723b4b5b32b5e13f15c53d565e148dd756612.tar.gz
(add_local_symbol): Index in the external symbol must point to local
symbol table entry for procedures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r--gcc/mips-tfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c
index 3d91c308d6f..b6acbf530fc 100644
--- a/gcc/mips-tfile.c
+++ b/gcc/mips-tfile.c
@@ -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;
}
}