Forrest logo
back to context overview

ld

List of commands for ld:

  • ld:tldr:291a8 ld: Link two object files together.
    $ ld ${filename1-o} ${filename2-o} --output ${path-to-output_executable}
    try on your machine
    explain this command
  • ld:tldr:84a71 ld: Link a specific object file with no dependencies into an executable.
    $ ld ${filename-o} --output ${path-to-output_executable}
    try on your machine
    explain this command
  • ld:tldr:eb6e0 ld: 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 ${filename-o} /lib/crtn.o
    try on your machine
    explain this command
back to context overview