在新的程序环境中修改报告的架构,以及设置个性标志
命令语法格式
setarch arch [options] [program [argument…]]
arch [options] [program [argument…]]
setarch –list|-h|-V
命令描述
setarch currently only affects the output of uname -m. For example, on an AMD64 system, running setarch i386 program will cause program to see i686 instead of x86_64 as the machine type. It also allows to set various personality options. The default program is /bin/sh.
命令支持的选项及含义
–list List the architectures that setarch knows about. Whether setarch can actually set each of these architectures depends on the running kernel.
–uname-2.6
Causes the program to see a kernel version number beginning with 2.6. Turns on UNAME26.
-v, –verbose
Be verbose.
-3, –3gb
Specifies program should use a maximum of 3GB of address space. Supported on x86. Turns on ADDR_LIMIT_3GB.
–4gb This option has no effect. It is retained for backward compatibility only, and may be removed in future releases.
-B, –32bit
Limit the address space to 32 bits to emulate hardware. Supported on ARM and Alpha. Turns on ADDR_LIMIT[……]