[CRIU] Re: [PATCH 03/13] make: Sanitize pie.lds.S

Pavel Emelyanov xemul at parallels.com
Wed Apr 18 04:40:19 EDT 2012


On 04/18/2012 12:16 PM, Cyrill Gorcunov wrote:
> On Wed, Apr 18, 2012 at 12:11:31PM +0400, Pavel Emelyanov wrote:
>> On 04/18/2012 01:55 AM, Cyrill Gorcunov wrote:
>>> No need to generate several sections in blobs,
>>> one is enough. We need a simple and strictly
>>> predefined structure.
>>
>> Why?
>>
> 
> Because it reflects what exactly is going on. We do
> pass everything in one binary blob,

Cyrill, this is bad explanation from my pov. When we call execve what
happens is -- we load a big blob into memory, but still we use the
sections in it. So is the parasite/restorer -- we do load some binary
into some place in ram and keeping sections is OK.

> moreover it's
> executable blob so better to not confuse those who
> will be reading this code (so one who will read this
> script will note that everything, including data and
> bss actually one section).

Not the whole blob is executable, right? And the fact that we make it
such doesn't make the project better :\

I'd keep sections and put "resolve sections permissions/attributes on load"
item in the todo list.

> 	Cyrill
> 



More information about the CRIU mailing list