1SETARCH(8)                   System Administration                  SETARCH(8)
2
3
4

NAME

6       setarch  -  change reported architecture in new program environment and
7       set personality flags
8

SYNOPSIS

10       setarch <arch> [options] [program [arguments]]
11       arch [options] [program [arguments]]
12

DESCRIPTION

14       setarch This utility currently only affects the output of uname -m. For
15       example,  on an AMD64 system, running 'setarch i386 program' will cause
16       'program' to see i686 (or other relevant arch)  instead  of  x86_64  as
17       machine  type.  It  also allows to set various personality options. The
18       default program is /bin/sh.
19

OPTIONS

21       -v, --verbose
22              Be verbose.
23
24       -h, --help
25              Display help (it is also displayed when setarch takes  no  argu‐
26              ments).
27
28       -V, --version
29              Output version information and exit.
30
31       --uname-2.6
32              Causes the program to see a kernel version number beginning with
33              2.6.
34
35       -3, --3gb
36              Specifies that processes should use a maximum of 3GB of  address
37              space on systems where it is supported (ADDR_LIMIT_3GB).
38
39       --4gb  Ignored (for backward compatibility only).
40
41       --list List architectures that can be set.
42
43       -B, --32bit
44              Turns on ADDR_LIMIT_32BIT.
45
46       -F, --fdpic-funcptrs
47              Userspace  function  pointers  point  to  descriptors  (turns on
48              FDPIC_FUNCPTRS).
49
50       -I, --short-inode
51              Turns on SHORT_INODE.
52
53       -L, --addr-compat-layout
54              Changes the way  virtual  memory  is  allocated  (turns  on  the
55              ADDR_COMPAT_LAYOUT).
56
57       -R, --addr-no-randomize
58              Disables  randomization  of  the virtual address space (turns on
59              ADDR_NO_RANDOMIZE).
60
61       -S, --whole-seconds
62              Turns on WHOLE_SECONDS.
63
64       -T, --sticky-timeouts
65              Turns on STICKY_TIMEOUTS.
66
67       -X, --read-implies-exec
68              Turns on READ_IMPLIES_EXEC.
69
70       -Z, --mmap-page-zero
71              Turns on MMAP_PAGE_ZERO.
72

EXAMPLES

74       setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
75       setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
76       setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
77

AUTHOR

79       Elliot Lee ⟨sopwith@redhat.com⟩
80       Jindrich Novy ⟨jnovy@redhat.com⟩
81

AVAILABILITY

83       The setarch command is part of the util-linux package and is  available
84       from  Linux  Kernel Archive ⟨ftp://ftp.kernel.org/pub/linux/utils/util-
85       linux/⟩.
86
87
88
89util-linux                      September 2011                      SETARCH(8)
Impressum