Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
c
chatr(1) chatr(1)
NAME
chatr - change program’s internal attributes
SYNOPSIS
PA32 SOM chatr
chatr [-nqsMN][-l library ][-B mode ][+b flag ][+es 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 ...
PA64 ELF chatr
There are two possible syntactic forms that can be used to invoke PA64 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 files that only have a single text and a
single data segment:
chatr [-nqs][-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 PA32 SOM AND PA64 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 PA64 FORMAT 1.)
-q Change file from shared (SHARE_MAGIC ) to demand-loaded (
DEMAND_MAGIC ). (Ignored
in PA64 FORMAT 1.)
-s Perform its operation silently. (Available with the PA64 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 PA64 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. See the +s
option. You can use the +b option to enable the embedded path for filter libraries.
+es flag Control the ability of user code to execute from stack with the flag values,
enable and
disable. See the Restricting Execute Permission on Stacks section below for additional
HP-UX Release 11i: December 2000 − 1 − Section 1−−73
___
___