Sun Studio 12: Fortran Programming Guide

4.2.1 Generating a Load Map

The linker -m option generates a load map that displays library linking information. The routines linked during the building of the executable binary program are listed together with the libraries that they come from.

Example: Using –m to generate a load map:


demo% setenv LD_OPTIONS ’-m’
demo% f95 any.f
any.f:
 MAIN:
            LINK EDITOR MEMORY MAP

output    input    virtual
section   section  address         size

.interp            100d4          11
            .interp 100d4         11 (null)
.hash              100e8          2e8
            .hash    100e8        2e8 (null)
.dynsym            103d0          650
            .dynsym 103d0         650 (null)
.dynstr            10a20          366
            .dynstr 10a20         366 (null)
.text              10c90          1e70
.text              10c90    00 /opt/SUNWspro/lib/crti.o
.text              10c90    f4 /opt/SUNWspro/lib/crt1.o
.text              10d84    00 /opt/SUNWspro/lib/values-xi.o
.text              10d88    d20 sparse.o
...