setarch: add support for '-R' (disable randomization)

This commit adds support for the -R flag of setarch, which disables
randomization of the virtual address space.

function                                             old     new   delta
setarch_main                                         115     150     +35
packed_usage                                       30664   30651     -13

Signed-off-by: Jan Heylen <heyleke@gmail.com>
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2015-10-19 23:26:50 +02:00
parent 0506e292b5
commit f2ccefb946
4 changed files with 39 additions and 29 deletions

View File

@@ -489,16 +489,6 @@ config SCRIPTREPLAY
This program replays a typescript, using timing information
given by script -t.
config SETARCH
bool "setarch"
default y
select PLATFORM_LINUX
help
The linux32 utility is used to create a 32bit environment for the
specified program (usually a shell). It only makes sense to have
this util on a system that supports both 64bit and 32bit userland
(like amd64/x86, ppc64/ppc, sparc64/sparc, etc...).
config SWAPONOFF
bool "swaponoff"
default y