104 Chapter 4
Linker Tools
Changing a Program's Attributes with chatr(1)
Changing a Program's Attributes withchatr(1)
Thechatr command (see chatr(1)) allows you to change various program
attributes that were determined at link time. When run without any
options, chatr displays the attributes of the specified file.

Using chatr for 32-bit Program Attributes

The following table summarizes the options you can use to change
various attributes:
To do this: Use this option:
32-bit mode only: Set the file's magic number to SHARE_MAGIC.-n
32-bit mode only: Set the file's magic number to DEMAND_MAGIC.-q
32-bit mode only: Change the file’s magic number fromEXEC_MAGIC
to SHMEM_MAGIC. -M
32-bit mode only: Change the file’s magic number from
SHMEM_MAGIC to EXEC_MAGIC.-N
Use immediate binding for all libraries loaded at program startup. -B immediate
Use deferred binding for all libraries loaded at program startup. -B deferred
Use nonfatal binding. Must be specified with -B immediate or-B
deferred.-B nonfatal
Use restricted binding. Must be specified with-B immediate or -B
deferred.-B restricted
Enable run-time use of the path list specified with the +b option at
link time. +b enable a
Disable run-time use of the path list specified with the +b option at
link time. +b disable