lkml.org 
[lkml]   [2009]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] FDPIC: Ignore the loader's PT_GNU_STACK when calculating the stack size
On Wed 2009-07-08 12:01:40, David Howells wrote:
> Pavel Machek <pavel@ucw.cz> wrote:
>
> > The patch seems wrong to me; loader needs the stack, too, right?
> >
> > What about making sure that the loader specifies reasonable stack
> > size, instead?
>
> The loader doesn't need its own stack, unless it _is_ the executable. It uses
> the executable's stack. The problem is that the executable and the loader can
> both specify the stack size for NOMMU, but which one do we pick, or do we
> consider both.

Imageine loader needs 64K, while executable only needs 4K. You surely
want to execute it with 64K stack, because it will not fit into 4K?

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2009-07-08 13:27    [W:0.061 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site