aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-10-12 18:34:13 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-10-12 18:34:13 -0400
commit691e5fb4042a60976bbc70d794f326d525df74fc (patch)
tree94513ad846c59c7f419b047b93f9cd3b46969fa1 /gcc
parent7a92339b20611111bb02b7b83bcc6e9cb5761740 (diff)
downloadgcc-691e5fb4042a60976bbc70d794f326d525df74fc.zip
gcc-691e5fb4042a60976bbc70d794f326d525df74fc.tar.gz
gcc-691e5fb4042a60976bbc70d794f326d525df74fc.tar.bz2
(add_local_symbol): Index in the external symbol must point to local
symbol table entry for procedures. From-SVN: r5758
Diffstat (limited to 'gcc')
-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 3d91c30..b6acbf5 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;
}
}