[patch] flag .persistent.bss sections as bss
Thu Sep 18 23:22:00 GMT 2014
On 09/16/14 10:54, Olivier Hainque wrote:
> Some target loaders (on VxWorks 653 for example) handle the ".persistent.bss"
> section as an area to reset during the initial startup of applications but not
> during warm restarts.
> We need these to be treated as bss sections by the compiler, in particular
> to prevent the use of executable file space for them.
> The attached patchlet does that by just augmenting the list of sections
> recognized by name to be marked as SECTION_BSS by default_section_type_flags.
> We have been using this for a while now, for Ada and its Persistent_BSS pragma
> Bootstrapped and regression tested on x86_64-linux.
> OK to commit ?
> Thanks in advance for your feedback,
> With Kind Regards,
> 2014-09-16 Olivier Hainque <firstname.lastname@example.org>
> * varasm.c (default_section_type_flags): Flag .persistent.bss
> sections as SECTION_BSS.
More information about the Gcc-patches