move constants for debug functions to end of file

This commit is contained in:
Ulf Möller 2000-12-06 00:19:09 +00:00
parent 1435ccfba1
commit e4d56bab5b

View File

@ -343,11 +343,9 @@ sub main'function_end
popl %ebx popl %ebx
popl %ebp popl %ebp
ret ret
$const
.${func}_end: .${func}_end:
EOF EOF
push(@out,$tmp); push(@out,$tmp);
$const="";
if ($main'cpp) if ($main'cpp)
{ push(@out,"\tSIZE($func,.${func}_end-$func)\n"); } { push(@out,"\tSIZE($func,.${func}_end-$func)\n"); }
@ -458,6 +456,12 @@ sub main'set_label
sub main'file_end sub main'file_end
{ {
if ($const ne "")
{
push(@out,".section .rodata\n");
push(@out,$const);
$const="";
}
} }
sub main'data_word sub main'data_word