OS Manuals

/usr/bin/setarch

Change reported architecture in new program environment and/or set personality flags

From setarch 2.42.4-r2 (os), captured 2026-11-05 by running setarch --help (exit 0). permalink

Usage:
 setarch [<arch>] [options] [<program> [<argument>...]]

Change the reported architecture and set personality flags.

Options:
 -B, --32bit              turns on ADDR_LIMIT_32BIT
 -F, --fdpic-funcptrs     makes function pointers point to descriptors
 -I, --short-inode        turns on SHORT_INODE
 -L, --addr-compat-layout changes the way virtual memory is allocated
 -R, --addr-no-randomize  disables randomization of the virtual address space
 -S, --whole-seconds      turns on WHOLE_SECONDS
 -T, --sticky-timeouts    turns on STICKY_TIMEOUTS
 -X, --read-implies-exec  turns on READ_IMPLIES_EXEC
 -Z, --mmap-page-zero     turns on MMAP_PAGE_ZERO
 -3, --3gb                limits the used address space to a maximum of 3 GB
     --4gb                ignored (for backward compatibility only)
     --uname-2.6          turns on UNAME26
 -v, --verbose            say what options are being switched on
     --list               list settable architectures, and exit
     --show[=personality] show current or specific personality and exit
 -p, --pid=PID            show the personality of the process using with --show

 -h, --help               display this help
 -V, --version            display version

For more details see setarch(8).
Options (18)
OptionDescriptionSource
-B, --32bitLimit the address space to 32 bits to emulate hardware.help + man
-F, --fdpic-funcptrsTreat user-space function pointers to signal handlers as pointers to address descriptors.help + man
-I, --short-inodeObsolete bug emulation flag.help + man
-R, --addr-no-randomizeDisables randomization of the virtual address space.help + man
-S, --whole-secondsObsolete bug emulation flag.help + man
-T, --sticky-timeoutsThis makes select(2), pselect(2), and ppoll(2) system calls preserve the timeout value instead of modifying it to reflect the amount of time not slept when interrupted by a signal handler.help + man
-X, --read-implies-execIf this is set then mmap(2) PROT_READ will also add the PROT_EXEC bit - as expected by legacy x86 binaries.help + man
-Z, --mmap-page-zeroSVr4 bug emulation that will set mmap(2) page zero as read-only.help + man
-3, --3gbThe specified program should use a maximum of 3GB of address space.help + man
--4gbignored (for backward compatibility only)help + man
--uname-2.6Causes the specified program to see a kernel version number beginning with 2.6.help + man
-v, --verbosesay what options are being switched onhelp + man
--listList the architectures that setarch knows about.help + man
-p, --pid PIDWhen used with --show, show the personality and flags of the specified process.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
--show personalityShow the currently active personality and flags. (in the manual page but not in --help)man
-L, --addr-compat-layoutProvide legacy virtual address space layout. (in the manual page but not in --help)man
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.