Linker and loader

Source: Internet
Author: User

LD. So(8) LD. So (8)

Name
LD. Also/ld-linux.so-dynamic linker/loader

Description
LD. So loads the shared libraries needed by a program, prepares the pro ‐
Gram to run, and then runs it. Unless explicitly specified via
-Static option to LD during compilation, all Linux programs are incom ‐
Plete and require further linking at run time.

The necessary shared libraries needed by the program are searched
In the following order

O using the environment variable LD_LIBRARY_PATH
(Ld_aout_library_path for A. out programs). Need t if the exe ‐
Cutable is a Setuid/Setgid binary, in which case it is ignored.

O from the cache file/etc/lD. So. cache which contains a compiled
List of candidate libraries previusly found in the augmented
Library path.

O in the default path/lib, And then/usr/lib.

Dynamic Link, loading

(This library component is not itself a library. Instead, LD. So is an executable invoked by the ELF binary format loader to load the dynamically linked libraries into an application's memory space .)

-------------------------------------------------------------------------------

LDD (1)LDD (1)

Name
LDD-print shared library Dependencies

-------------------------------------------------------------------------------

LD (1)GNU development tools LD (1)

Name
LD-the GNU linker

Synopsis
LD [Options] objfile...

Description
LD combines a number of object and archive files, relocates their data
And ties up symbol references. Usually the last step in compiling
Program is to run lD.

LD accepts linker command language files written in a superset
At&t's link editor command language syntax, to provide explicit and
Total control over the linking process.

The last step of the linker Compilation:

 
LDOther-command-line-Options/Tmp/a. o/tmp/B. O-o a. Out
 
 
 
 
 
Refer:
 
Http://en.wikipedia.org/wiki/Linker_ (Computing)
Linkers and loaders by Sandeep Grover
 
 
 
 
 
Http://en.wikipedia.org/wiki/Loader_ (Computing) # cite_note-0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.