Updated: October 28, 2024 |
Linker command (POSIX)
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 64-bit | ntox86_64-ld |
Linux, Mac, Microsoft Windows
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 https://www.gnu.org/software/binutils/manual/.
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.
GNU