[CRIU] [PATCH 4/6] parasite: Bind parasite data to own data section

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 09:40:22 EST 2012


On Tue, Feb 14, 2012 at 06:30:18PM +0400, Kir Kolyshkin wrote:
> On 02/14/2012 05:41 PM, Cyrill Gorcunov wrote:
> >To eliminate binding to .bss section (we don't have own
> >section loader, so that data variables must not be shrinked).
> >
...
> >+
> >+static unsigned char __parasite_data hex[] = "0123456789abcdef";
> 
> Why remove 'const'?
> 

Because it's bound to own section which has read-write attributes.
If we need own read-only section, we're to provide such in linker
script. Kir, the problem is a way bigger than you might think of.
I'll explain in another email (in reply to Pavel's email).

	Cyrill


More information about the CRIU mailing list