diff options
author | David Howells <[email protected]> | 2009-09-23 15:57:06 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-09-24 07:21:02 -0700 |
commit | 8e8b63a68c7ec95ef23770813120f4f98c76e08b (patch) | |
tree | 82339b06388b2002557ec5fab7dcfa72c918b3c6 /scripts/basic/docproc.c | |
parent | 0cf062d0ffa33d491e2695b0d298ccf9cbb58d3d (diff) |
fdpic: ignore the loader's PT_GNU_STACK when calculating the stack size
Ignore the loader's PT_GNU_STACK when calculating the stack size, and only
consider the executable's PT_GNU_STACK, assuming the executable has one.
Currently the behaviour is to take the largest stack size and use that,
but that means you can't reduce the stack size in the executable. The
loader's stack size should probably only be used when executing the loader
directly.
WARNING: This patch is slightly dangerous - it may render a system
inoperable if the loader's stack size is larger than that of important
executables, and the system relies unknowingly on this increasing the size
of the stack.
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
Acked-by: Paul Mundt <[email protected]>
Cc: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions