Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (m - o) nld(1)
-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 le. Only the rst pro-
cedure having the MAIN attribute is listed as the main entry point in the le header.
-ansistreams
Species that C run-time library functions create les of type 180 (C binary) instead of
type 101 (EDIT). The type of les created can also be set with the ANSISTREAMS C
and C++ compiler pragma. Refer to the C/C++ Programmers Guide for details.
-bdynamic
Directs nld to search for SRLs and archive les when resolving -l and -lib ags. This
is the nld default action.
nld rst searches for an SRL. If an SRL cannot be found, nld then searches for an
archive le. nld issues an error if neither an SRL nor archive le can be found.
This ag can be disabled by the -bstatic ag. Multiple -bdynamic and -bstatic ags
can be specied in a single nld invocation. Thus, it is possible to search for both SRLs
and archive les for some -l and -lib ags and to search for just archive les for others.
-bstatic Directs nld to to search for archive les when resolving -l and -lib ags. nld does not
search for SRLs. nld issues an error if an archive le cannot be found.
This ag can be disabled by the -bdynamic ag. Multiple -bdynamic and -bstatic
ags can be specied in a single nld invocation. Thus, it is possible to search for both
SRLs and archive les for some -l and -lib ags and to search for just archive les for
others.
-change attribute-name attribute-value filename
Changes the value of the run-time attribute specied in attribute-name to the value
specied in attribute-value in the existing relinkable or executable object le specied
by lename. See the -set ag for a description of attribute-name and attribute-value.
You cannot specify other ags or object lenames with the -change ag. The resulting
object le has the same nld timestamp as before. The -set ag can be used to set an
attribute when creating a relinkable or executable object le.
-e name Species a function identier. The specied function is the point at which to begin
executing the program when the program is loaded.
This ag 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 ag should not be used for libraries.
-elf_check filename
Tells nld to check the specied executable le for corruptions that might have occurred
when:
Unresolved references in the data portion of the le that were not on a 4-byte-
aligned boundary were resolved.
The PC version of NLD changed the le header during an SRL xup operation.
This is a read-only operation.
527188-007 Hewlett-Packard Company 643