1 .TH SETARCH 8 "Jun 2007" setarch "Linux Programmer's Manual"
3 setarch \- change reported architecture in new program environment and set personality flags
17 This utility currently only affects the output of uname -m. For example, on an AMD64 system, running 'setarch i386 program' will cause 'program' to see
19 (or other relevant arch) instead of
21 as machine type. It also allows to set various personality options. The default
26 .I "\-v," "\-\-verbose"
30 Display help (it is also displayed when setarch takes no arguments).
33 Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB).
36 Turns on ADDR_LIMIT_32BIT.
38 .I "\-F," "\-\-fdpic-funcptrs"
39 Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS).
41 .I "\-I," "\-\-short-inode"
44 .I "\-L," "\-\-addr-compat-layout"
45 Changes the way virtual memory is allocated (turns on the ADDR_COMPAT_LAYOUT).
47 .I "\-R," "\-\-addr-no-randomize"
48 Disables randomization of the virtual address space (turns on ADDR_NO_RANDOMIZE).
50 .I "\-S," "\-\-whole-seconds"
51 Turns on WHOLE_SECONDS.
53 .I "\-T," "\-\-sticky-timeouts"
54 Turns on STICKY_TIMEOUTS.
56 .I "\-X" "\-\-read-implies-exec"
57 Turns on READ_IMPLIES_EXEC.
59 .I "\-Z," "mmap-page-zero"
60 Turns on MMAP_PAGE_ZERO.
62 setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
64 setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
66 setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
68 Elliot Lee <sopwith@redhat.com>
70 Jindrich Novy <jnovy@redhat.com>
72 The setarch command is part of the util-linux-ng package and is available from
73 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.