chatr(1)

chatr(1)

NAME

chatr - change program's internal attributes

SYNOPSIS

PA32 SOM chatr

chatr [-nqsMN][-l library ] [-B mode ] [+b ¯ag ] [+es ¯ag ] [+gst ¯ag ] [+gstbuckets size ] [+gstsize size ] [+k ¯ag ] [+l library ] [+pd size ] [+pi size ] [+plabel_cache ¯ag ] [+q3p ¯ag ] [+q4p ¯ag ] [+r ¯ag ] [+s ¯ag ] [+z ¯ag ] ®le ...

PA64 ELF chatr

There are two possible syntactic forms that can be used to invoke PA64 chatr.

FORMAT 1: The ®rst syntactic form, which is compatible with the SOM chatr, is used for backward compatibility, and for easy manipulation of ordinary ®les that only have a single text and a single data segment:

chatr [-nqs][-l library ] [-B mode ] [+b ¯ag ] [+cd ¯ag ] [+ci ¯ag ] [+es ¯ag ] [+gst ¯ag ] [+gstsize size ] [+k ¯ag ] [+l library ] [+md ¯ag ] [+mi ¯ag ] [+pd size ] [+pi size ] [+s ¯ag ] [+z ¯ag ] ®le ...

FORMAT 2:

The

second

syntactic form provides the

ability

to explicitly specify segments to be

modi®ed:

 

 

 

 

 

 

chatr [-s]

[-Bmode ]

[+c ¯ag ]

[+dz ¯ag ] [+k ¯ag ] [+m

¯ag ] [+p size ] [+r ¯ag ] [+s ¯ag ]

[+si index

+sa address

+sall ] [+z ¯ag ]

®le ...

 

DESCRIPTION

chatr allows you to change a program's internal attributes for 32-bit mode SOM and 64-bit mode ELF ®les.

Upon completion, chatr prints the ®le's old and new values to standard output unless -sis speci®ed.

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 speci®c memory requirements of the application.

The performance of some applications may bene®t 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 ®le's magic number and ®le attributes to the standard output.

-llibrary

Indicate that the speci®ed shared library is subject to run-time path lookup if directory

 

path lists are provided (see

+s and +b).

 

-n

Change ®le from demand-loaded (DEMAND_MAGIC ) to shared (SHARE_MAGIC ) (Ignored

 

in PA64 FORMAT 1.)

 

 

-q

Change ®le 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.)

-Bmode

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 modi®ers nonfatal, verbose, or restricted can also be speci®ed, 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 ¯ag 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 ®lter libraries.

+es flag

Control the ability of user code to execute from stack with the ¯ag values,

enable and

 

disable. See the Restricting Execute Permission on Stacks section below for additional

HP-UX Release 11i: December 2000

− 1 −

Section 173

c