This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] flag .persistent.bss sections as bss


On 09/16/14 10:54, Olivier Hainque wrote:
Hello,

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
specifically.

Bootstrapped and regression tested on x86_64-linux.

OK to commit ?

Thanks in advance for your feedback,

With Kind Regards,

Olivier

2014-09-16  Olivier Hainque  <hainque@adacore.com>

         * varasm.c (default_section_type_flags): Flag .persistent.bss
         sections as SECTION_BSS.
Ok.

Jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]