scc

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

commit f20644a9c4d448fbc39b1622f521e3f93442d061
parent 6ecb8c628eed678e24a51d06f0e2203e14a73815
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 23 Aug 2019 18:53:13 +0100

[size] Add support for read-only symbols

These symbols are usually computed into the text segment.

Diffstat:
Msrc/cmd/size.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/cmd/size.c b/src/cmd/size.c @@ -58,6 +58,7 @@ newobject(FILE *fp, int type) siz.text = siz.data = siz.bss = 0; for (sp = obj->secs; sp; sp = sp->next) { switch (sp->type) { + case 'R': case 'T': p = &siz.text; break;