| United States-English |
|
|
|
![]() |
HP-UX Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line OptionsLinker Options |
|
You can specify the following linker options on the compiler command line: -e epsym Using the -e epsym option sets the default entry point address for the output file to be the same as the symbol epsym. This option only applies to executable files. It does not work if epsym=xec. -n The -n option causes the program file produced by the linker to be marked as sharable. For details and system defaults, refer to the description of ld in the HP-UX Reference Manual or the ld(1) manpage if it is installed on your system. -N The -N option causes the program file produced by the linker to be marked as unsharable. Unsharable executable files generated with the -N option cannot be executed with exec. For details and system defaults, refer to the description of ld in the HP-UX Reference Manual or the ld(1) manpage if it is installed on your system. -q The -q option causes the output file from the linker to be marked as demand-loadable. For details and system defaults, refer to the description of ld in the HP-UX Reference Manual or the ld(1) manpage if it is installed on your system. -Q The -Q option causes the program file from the linker to be marked as not demand-loadable. For details and system defaults, refer to the description of ld in the HP-UX Reference Manual or the ld(1) manpage if it is installed on your system. -s Using the -s option causes the executable program file created by the linker to be stripped of symbol table information. Specifying this option prevents using a symbolic debugger on the resulting program. For details and system defaults, refer to the description of ld in the HP-UX Reference Manual or the ld(1) manpage if it is installed on your system. Enter symbol as an undefined symbol in ld’s symbol table. The resulting unresolved reference is useful for linking a program solely from object files in a library. More than one symbol can be specified, but each must be preceded by -u. See ld(1) manpage for more information. +ild The +ild option specifies incremental linking. If the output file does not exist, or if it was created without the +ild option, the linker performs an initial incremental link. The output file produced is suitable for subsequent incremental links. The incremental link option is valid for both executable and shared library links. It is not valid for relocatable links, options or tools that strip the output module, and certain optimization options. See ld(1) manpage for more information. +ildrelink The +ildrelink option performs an initial incremental link, regardless of the output load module. In certain situations during incremental linking (for example, internal padding space is exhausted), the incremental linker is forced to perform an initial incremental link. The +ildrelink option allows you to avoid such unexpected initial incremental links by periodically rebuilding the output file. See ld(1) manpage for more information. |
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||