ld Command Examples

Link object files together. More information: https://sourceware.org/binutils/docs/ld.html.

ld {{path/to/file.o}} {{[-o|--output]}} {{path/to/output_executable}}

ld {{path/to/file1.o}} {{path/to/file2.o}} {{[-o|--output]}} {{path/to/output_executable}}

ld {{[-o|--output]}} {{path/to/output_executable}} {{[-I|--dynamic-linker]}} /lib/ld-linux-x86-64.so.2 /lib/crt1.o /lib/crti.o -lc {{path/to/file.o}} /lib/crtn.o