CmdID

CmdID / Commands

ld

Link object files together. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Link a specific object file with no dependencies into an executable

ld path/to/file.o --output path/to/output_executableIdentify

Link multiple object files together

ld path/to/file1.o path/to/file2.o ... --output path/to/output_executableIdentify

Link an object file to a specific target emulation

ld path/to/file.o -m target_emulation --output path/to/output_executableIdentify

Dynamically link an x86_64 program to glibc (file paths change depending on the system)

ld --output path/to/output_executable --dynamic-linker /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc path/to/file.o /lib/crtn.oIdentify