ld

Linker command (POSIX)

Note: You should use qcc instead of calling ld directly.

Syntax:

ld_variant [option…] objfile

where ld_variant depends on the target platform, as follows:

Target platform ld_variant
ARMv7 ntoarmv7-ld
AArch64 ntoaarch64-ld
x86 ntox86-ld
x86 64-bit ntox86_64-ld

Runs on:

Linux, Mac, Microsoft Windows

Description:

The ld linker combines a number of object and archive files, relocates their data, and ties up symbol references. Usually the last step in compiling a program is to run ld. For more information, see the Binutils documentation on the GNU website at http://www.gnu.org/.

In QNX Neutrino 7.0 or later, and as a QNX Neutrino extension, the default type of linking for the -z option is now instead of lazy.

Contributing author:

GNU