Commit 691e5fb4 by Richard Kenner

(add_local_symbol): Index in the external symbol must point to local

symbol table entry for procedures.

From-SVN: r5758
parent 7a92339b
...@@ -2045,7 +2045,10 @@ add_local_symbol (str_start, str_end_p1, type, storage, value, indx) ...@@ -2045,7 +2045,10 @@ add_local_symbol (str_start, str_end_p1, type, storage, value, indx)
if (last_func_eptr) if (last_func_eptr)
{ {
last_func_eptr->ifd = cur_file_ptr->file_index; 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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment