scc

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

commit acdc058a5a9605d42390a749966413ee3427f517
parent 709f3944bfff1578b1393372e5d96a2c45008a1d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 17 Jan 2025 15:52:47 +0100

as: Don't relocate bss

Bss by definition cannot have relocations because it only
contains not initialized data.

Diffstat:
Msrc/cmd/scc-as/symbol.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/scc-as/symbol.c b/src/cmd/scc-as/symbol.c @@ -389,7 +389,7 @@ ibinfmt(void) stext = defsec(".text", "mrxcl"); sdata = defsec(".data", "mrwcl"); - sbss = defsec(".bss", "mrwc"); + sbss = defsec(".bss", "rwc"); } void