There are three situations that terminate HP Link Editor/XL:

When you explicitly end HP Link Editor/XL b y entering the EXIT command:

LinkEd> EXIT

You can abbreviate the EXIT command as E, EX, or EXI. The commands QUIT, Q, and BYE also terminate HP Link Editor/XL.

When end-of-￿le in $STDINX is encountered.

When an error occurs in a batc h job. An error message is prin ted, the system Job Con trol Word (JCW) is set to indicate a fatal error, and HP Link Editor/XL ends.

Creating an Executable Program File

HP Link Editor/XL creates executable program ￿les from relocatable object ￿les and relocatable libraries in the following w ay. First, it merges selected relocatable object ￿les and libraries in to one module and resolv es inter-module references. Then, it searc hes selected relocatable libraries, resolving external references to sym bols unde￿ned after the merge operation. When a relocatable object module in the library resolv es an external reference, the module is merged in to the executable program ￿le that is being built. In the last step, HP Link Editor/XL assigns virtual addresses to all sym bols, binds references to the kno wn symbols within eac h relocatable object module, and puts the resulting executable program in a form that the loader can process. Figure 4-3 sho ws the ￿les HP Link Editor/XL uses when it creates an executable program ￿le.

Figure 4-3. Creating an Executable Program File

HP Link Editor/XL 4-9