1SETARCH(8) Linux Programmer's Manual SETARCH(8)
2
3
4
6 setarch - change reported architecture in new program environment and
7 set personality flags
8
10 setarch arch [options] [program [arguments]]
11 arch [options] [program [arguments]]
12
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
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 -3, --3gb
29 Specifies that processes should use a maximum of 3GB of address
30 space on systems where it is supported (ADDR_LIMIT_3GB).
31
32 -B, --32bit
33 Turns on ADDR_LIMIT_32BIT.
34
35 -F, --fdpic-funcptrs
36 Userspace function pointers point to descriptors (turns on
37 FDPIC_FUNCPTRS).
38
39 -I, --short-inode
40 Turns on SHORT_INODE.
41
42 -L, --addr-compat-layout
43 Changes the way virtual memory is allocated (turns on the
44 ADDR_COMPAT_LAYOUT).
45
46 -R, --addr-no-randomize
47 Disables randomization of the virtual address space (turns on
48 ADDR_NO_RANDOMIZE).
49
50 -S, --whole-seconds
51 Turns on WHOLE_SECONDS.
52
53 -T, --sticky-timeouts
54 Turns on STICKY_TIMEOUTS.
55
56 -X --read-implies-exec
57 Turns on READ_IMPLIES_EXEC.
58
59 -Z, mmap-page-zero
60 Turns on MMAP_PAGE_ZERO.
61
63 setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
64 setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
65 setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
66
68 Elliot Lee <sopwith@redhat.com>
69 Jindrich Novy <jnovy@redhat.com>
70
72 The setarch command is part of the util-linux-ng package and is avail‐
73 able from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
74
75
76
77setarch Jun 2007 SETARCH(8)