Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
nld(1) OSS Shell and Utilities Reference Manual
-allow_multiple_mains
Tells nld that it is not to issue an error message if more than one procedure has the
MAIN attribute. All main procedures are included in the output file. Only the first pro-
cedure having the MAIN attribute is listed as the main entry point in the file header.
-ansistreams
Specifies that C run-time library functions create files of type 180 (C binary) instead of
type 101 (EDIT). The type of files created can also be set with the ANSISTREAMS C
and C++ compiler pragma. Refer to the C/C++ Programmer’s Guide for details.
-bdynamic
Directs nld to search for SRLs and archive files when resolving -l and -lib flags. This
is the nld default action.
nld first searches for an SRL. If an SRL cannot be found, nld then searches for an
archive file. nld issues an error if neither an SRL nor archive file can be found.
This flag can be disabled by the -bstatic flag. Multiple -bdynamic and -bstatic flags
can be specified in a single nld invocation. Thus, it is possible to search for both SRLs
and archive files for some -l and -lib flags and to search for just archive files for others.
-bstatic Directs nld to to search for archive files when resolving -l and -lib flags. nld does not
search for SRLs. nld issues an error if an archive file cannot be found.
This flag can be disabled by the -bdynamic flag. Multiple -bdynamic and -bstatic
flags can be specified in a single nld invocation. Thus, it is possible to search for both
SRLs and archive files for some -l and -lib flags and to search for just archive files for
others.
-change attribute-name attribute-value filename
Changes the value of the run-time attribute specified in attribute-name to the value
specified in attribute-value in the existing relinkable or executable object file specified
by filename. See the -set flag for a description of attribute-name and attribute-value.
You cannot specify other flags or object filenames with the -change flag. The resulting
object file has the same nld timestamp as before. The -set flag can be used to set an
attribute when creating a relinkable or executable object file.
-e name Specifies a function identifier. The specified function is the point at which to begin
executing the program when the program is loaded.
This flag should be used only when linking a program that will execute without stan-
dard run-time support facilities and without linking a module such as CRTLMAIN that
contains a function with the MAIN attribute. This flag should not be used for libraries.
-elf_check filename
Tells nld to check the specified executable file for corruptions that might have occurred
when:
• Unresolved references in the data portion of the file that were not on a 4-byte-
aligned boundary were resolved.
• The PC version of NLD changed the file header during an SRL fixup operation.
This is a read-only operation.
6−42 Hewlett-Packard Company 527188-004