handle local commons in one place only

This commit is contained in:
ceriel
1988-12-06 13:22:34 +00:00
parent 18b719de80
commit 87d0349814
3 changed files with 14 additions and 18 deletions

View File

@@ -9,6 +9,20 @@ finish_tables()
/* Prepare tables for do_local_relocation() and output().
*/
{
register struct outname *np = symbol_table;
register int i = nname;
for (; i; i--, np++) {
if ((np->on_type & S_COM) && ! (np->on_type & S_EXT)) {
long sz = np->on_valu;
switchseg(SEGBSS);
align_word();
np->on_type &= (~S_COM);
np->on_valu = cur_value();
bss(sz);
}
}
while ( ( text - text_area) % EM_WSIZE != 0 )
text1( '\0');
while ( ( data - data_area) % EM_WSIZE != 0 )