pdp11 loader options
lwa%mit-csr at sri-unix.UUCP
lwa%mit-csr at sri-unix.UUCP
Sun Jun 12 03:17:00 AEST 1983
The -i and -n options to the pdp-11 loader actually do different
things. -n produces a load image with separate "text" and
"data" segments, such that the text segment is read-only and
can be shared. The data segment is relocated to begin at
the next 4K word boundary above the end of the text segment
(_etext) so that it will mapped by a different mapping register -
this allows the text and data segments to be non-contiguous in
physical memory.
The -i option goes further - it produces a program linked to run
with separated instruction and data (I and D) spaces. In this
case both the text segment and the data segment are relocated to
begin at virtual address 0; the processor determines from the
type of reference (instruction fetch or not) whether the address
is to be mapped using the I-space mapping registers or the D-space
mapping registers.
Programs linked with -n can be run on any pdp-11; programs linked with
-i can be larger, but will only run on 11/44's, 45's, 50's, 55's, and 70's.
-Larry Allen
-------
More information about the Comp.unix.wizards
mailing list