HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

c
chatr(1) chatr(1)
NAME
chatr - change program’s internal attributes
SYNOPSIS
PA-RISC 32-bit SOM chatr
chatr [-nqsMN [z|Z
]] [-l library][-B mode][+b flag][+dbg flag][
+es flag][+mergeseg
flag][+gst flag][
+gstbuckets size][+gstsize size][+k flag][+l library][
+pd size]
[
+pi size][+plabel_cache
flag][+q3p flag][
+q4p flag][+r flag][+s flag][
+z flag]
file ...
PA-RISC 64-bit ELF chatr
There are two possible syntactic forms that can be used to invoke PA-RISC 64-bit
chatr.
FORMAT 1: The first syntactic form, which is compatible with the SOM
chatr, is used for back-
ward compatibility, and for easy manipulation of ordinary les that only have a single text and a
single data segment:
chatr [-nqszZ][-l library][
-B mode][+b flag][+cd flag][+ci flag][
+es flag][+gst flag]
[
+gstsize size][+k flag][+l library][+md flag][
+mi flag][+pd size][+pi size][+s flag]
[
+z flag] file ...
FORMAT 2: The second syntactic form provides the ability to explicitly specify segments to be
modified:
chatr [-s][-B mode][+c flag][+dz flag][
+k flag][+m flag][+p size][+r flag][+s flag][+si
index | +sa address | +sall ][+z flag] file ...
DESCRIPTION
chatr allows you to change a program’s internal attributes for 32-bit mode SOM and 64-bit mode ELF
files.
Upon completion, chatr prints the file’s old and new values to standard output unless
-s is specified.
The
+pd and +pi options only provide a hint for the virtual memory page size. The actual page sizes
may vary. Under certain conditions, page size hints of L may result in better performance, depending on
the specific memory requirements of the application.
The performance of some applications may benefit from static branch prediction, others may not. The
+r
option provides a hint for using or avoiding this feature.
The +gst and related options provide performance enhancements through use of global symbol table
which improves searching for exported symbols. See dld.sl(5) and the HP-UX Linker and Libraries Online
User Guide for more information.
Common Options For PA-RISC 32-bit SOM And PA-RISC 64-bit ELF (FORMAT 1) chatr
chatr, by default, prints each file’s magic number and file attributes to the standard output.
-l library Indicate that the specified shared library is subject to run-time path lookup if directory
path lists are provided (see +s and +b).
-n Change file from demand-loaded (DEMAND_MAGIC ) to shared (SHARE_MAGIC )(Ignored
in PA-RISC 64-bit FORMAT 1.)
-q Change file from shared (SHARE_MAGIC ) to demand-loaded (DEMAND_MAGIC ). (Ignored
in PA-RISC 64-bit FORMAT 1.)
-s Perform its operation silently. (Available with the PA-RISC 64-bit FORMAT 2 command.)
-B mode Select run-time binding behavior mode of a program using shared libraries. You must
specify one of the major binding modes immediate or deferred. One or more of the
binding modifiers nonfatal, verbose,or restricted can also be specified, each
with a separate option. See the HP-UX Linker and Libraries User’s Guide manual for a
description of binding modes. (Available with the PA-RISC 64-bit FORMAT 2 command.)
+b flag Control whether the embedded path list stored when the program (if any) was built can be
used to locate shared libraries needed by the program. The two flag values, enable and
disable, respectively enable and disable use of the embedded path list. However, you
cannot use disable on an ELF (PA-RISC 64-bit) file and a warning message is issued.
See the +s option. You can use the +b option to enable the embedded path for filter
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 173