Sun Studio 12: Fortran Programming Guide

4.2.2 Listing Other Information

Additional linker debugging features are available through the linker’s -Dkeyword option. A complete list can be displayed using -Dhelp.

Example: List linker debugging aid options using the -Dhelp option:


demo% ld -Dhelp
      …
debug: args           display input argument processing
debug: bindings       display symbol binding;
debug: detail         provide more information
debug: entry          display entrance criteria descriptors
      …
demo%

For example, the -Dfiles linker option lists all the files and libraries referenced during the link process:


demo% setenv LD_OPTIONS ’-Dfiles’
demo% f95 direct.f
direct.f:
 MAIN direct:
debug: file=/opt/SUNWspro/lib/crti.o  [ ET_REL ]
debug: file=/opt/SUNWspro/lib/crt1.o  [ ET_REL ]
debug: file=/opt/SUNWspro/lib/values–xi.o  [ ET_REL ]
debug: file=direct.o  [ ET_REL ]
debug: file=/opt/SUNWspro/lib/libM77.a  [ archive ]
debug: file=/opt/SUNWspro/lib/libF77.so  [ ET_DYN ]
debug: file=/opt/SUNWspro/lib/libsunmath.a  [ archive ]
      …

See the Linker and Libraries Guide for further information on these linker options.