For example, if an ASCII ￿le named OBJLIST contained the lines

LIB1OBJ

LIB2OBJ

LIB3OBJ

LIB4OBJ

LIB5OBJ

you can use the indirect ￿le OBJLIST in the following commands to add the ￿v e relocatable object ￿les named in OBJLIST to the relocatable library named LIBRL:

:LINKEDIT LinkEd> BUILDRL LIBRL LinkEd> ADDRL FROM=JLIST LinkEd> EXIT

Starting and Ending HP Link Editor/XL

You automatically use HP Link Editor/XL when y ou execute one of the MPE/iX commands that compiles and links a program in one step or compiles, links, and executes a program in one step. You can directly start HP Link Editor/XL in one of the follo wing ways:

Enter the :LINKEDIT command at the MPE/iX prompt:

:LINKEDIT

HP Link Editor/XL displa ys its command line prompt LinkEd> , and waits for you to enter a command. Each time you enter a link editor command, it is executed and y ou are prompted to enter another. This con tinues until you end HP Link Editor/XL with the EXIT command.

Enter a :LINK command at the MPE/iX prompt:

:LINK FROM=EX1OBJ;TO=EX1PROG;RL=LIBRL

The link editor performs the link operation, then ends. The :LINK command is discussed in Chapter 3 and has the same syn tax when used at the MPE/iX command lev el as when entered at the link editor prompt.

Enter a :RUN or a :LINKEDIT command, with an INFO string, at the MPE/iX prompt. Enter an INFO string that contains one link editor command:

:RUN LINKEDIT.PUB.SYS;INFO="LISTRL;RL=LIBRL"

Or you can use the short form:

:LINKEDIT "LISTRL;RL=LIBRL"

The command in the INFO string is executed and HP Link Editor/XL ends. Y ou can execute any link editor command in this manner.

4-8 HP Link Editor/XL