scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 57603b6bf3f5e0d060012e759be7d280e94f28ab
parent 4b9e2faf7b3ccd6268c11a8844e1ef2798278b57
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 16 Dec 2017 08:22:37 +0100

[as] Invert the meaning of LOAD and FILE bits

It is better to have always the section in the file and loaded
except when these bits are added.

Diffstat:
Mas/symbol.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/as/symbol.c b/as/symbol.c @@ -219,10 +219,10 @@ setsec(char *name, char *attr) void isecs(void) { - sabs = setsec(".abs", "rwxafl"); - sbss = setsec(".bss", "rwl"); - sdata = setsec(".data", "rwfl"); - stext = setsec(".text", "rxfl"); + sabs = setsec(".abs", "rwx"); + sbss = setsec(".bss", "rwf"); + sdata = setsec(".data", "rw"); + stext = setsec(".text", "rx"); } void