ref: 29c18d7fc18d76827b14ce5de83e6c48330acfdc
parent: f76858ddb7d53feb5b52f5828fdd0eaec4a968f4
author: Ori Bernstein <[email protected]>
date: Thu Jun 21 12:15:33 EDT 2012
Separate data and text sections.
--- a/8/reduce.c
+++ b/8/reduce.c
@@ -969,8 +969,10 @@
for (i = 0; i < nfn; i++)
genasm(stdout, fn[i], globls);
}
+ fprintf(fd, ".data\n");
for (i = 0; i < nblob; i++)
genblob(fd, blob[i], globls);
+ fprintf(fd, ".text\n");
for (i = 0; i < nfn; i++)
genasm(fd, fn[i], globls);
fclose(fd);