Set the code bit for the ®le's text segments(s).
Set the modi®cation bit for the ®le's data segment(s). Set the modi®cation bit for the ®le's text segment(s).
Set the code bit for the ®le's data segment(s).

chatr(1)

chatr(1)

The enable ¯ag sets the ¯ag bit to indicate that 32-bit processes use the third quadrant as a private data space. By setting the bit, the private data space increases from 1.9GB to 2.85GB for 32-bit processes.

The disable ¯ag unsets the bit, which returns the third quadrant to the default state, in which it is used for shared memory.

This ¯ag mechanism differs from how to set usage for the ®rst and second quadrants. Set these values by using the magic number of the executable. (See the -Mand -Noptions.)

+q4p flag Control the ¯ag bit setting to indicate how 32-bit processes use the third and fourth quadrant as data space.

The enable ¯ag sets the ¯ag bit to indicate that 32-bit processes use the fourth quadrant as a private data space. By setting the +q4p ¯ag bit, the private data space increases from 1.9GB to 3.8GB for 32-bit processes. When you set the fourth quadrant for private data space, the third quadrant is automatically set for use as private data space, ignoring the current +q3p value.

The disable ¯ag unsets the ¯ag bit, which returns the fourth quadrant to the default state, in which it is used for shared memory. With +q4p disable, the value of the +q3p ¯ag controls whether the third quadrant is used as a private data space or for shared memory.

This ¯ag mechanism differs from how to set usage for the ®rst and second quadrants. Set these values by using the magic number of the executable. (See the -Mand -Noptions.)

OPTIONS FOR PA64 ELF chatr

PA64 ELF chatr is similar to SOM chatr but supports new options (and obsoletes others).

New options:

OPTIONS FOR PA64 ELF chatr (FORMAT 1) +cd

+ci

+md

+mi

OPTIONS FOR PA64 ELF chatr (FORMAT 2)

With common options: -s, -Bmode, +k ¯ag, +r ¯ag, +s ¯ag, +z ¯ag.

+c

Set the code bit for a speci®ed segment.

+dz

Enable or disable lazy swap allocation for dynamically allocated segments (such as the stack

 

or heap).

+m

Set the modi®cation bit for a speci®ed segment.

+p

Set the page size for a speci®ed segment.

+sa

Specify a segment using an address for a set of attribute modi®cations.

+sall

Use all segments in the ®le for a set of attribute modi®cations.

+si

Specify a segment using a segment index number for a set of attribute modi®cations.

chatr and MAGIC Numbers

The term shared applies to the magic number SHARE_MAGIC while the term demand-loadedapplies to the magic number DEMAND_MAGIC . See magic(4) and the HP-UX Linker and Libraries Online User Guide for more information.

chatr labels the following type of executables in output.

SHARE_MAGIC : shared executable

DEMAND_MAGIC : demand load executable

EXEC_MAGIC:

normal executable

c

HP-UX Release 11i: December 2000

− 3 −

Section 175