On Apr 03 2019, Thomas Koenig <tkoe...@netcologne.de> wrote:

> The large default initializers are all filled with zeros which end up in
> the rodata section, like this:
>
>         .text
>         .globl  __types_module_MOD___def_init_types_module_Archive_type
>         .section        .rodata
>         .align 32
>         .type __types_module_MOD___def_init_types_module_Archive_type,
> @object
>         .size __types_module_MOD___def_init_types_module_Archive_type,
> 262144
> __types_module_MOD___def_init_types_module_Archive_type:
>         .zero   262144
>
> ... and so on. To reduce the size of the executable, it would make more
> sense to put this into the BSS section.

Note that .bss is writable.  There is no read-only bss section.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to