mungeas issue
Using CW ARM 1.7 (for v2 also applicable)
mungeas correctly replace .text, .data, .rodata sections, but not .bss.
This is because compiler put zero-initialized variables to .comm section (not in .bss).
Example (test12.c)
unsigned bss_var;
produces
.file "test12.c"
.comm bss_var,4,4
.ident "GCC: (GNU) 4.1.1"
If I explicitly define section:
unsigned bss_var __attribute__((section(".bss")));
it produces
.file "test12.c"
.global bss_var
.section .bss,"aw",%nobits
.align 2
.type bss_var, %object
.size bss_var, 4
bss_var:
.space 4
.ident "GCC: (GNU) 4.1.1"
and mungeas works correctly.
Is there any chance for mungeas to handle such situation without explicitly placing variables to .bss (i.e. editing sources)?
PS. In gcc manual I found options for ARC
-mtext=text-section
-mdata=data-section
-mrodata=readonly-data-section
but they are not for ARM :(
Please sign in to leave a comment.
Comments
2 comments