Go to the first, previous, next, last section, table of contents.


Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

°³¿ä

ld 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.

(¿ªÁÖ; ÀÌ ¹®¼­´Â ½ÇÇàÆÄÀÏ Çü½Ä¿¡ ´ëÇÑ ±âº» ÀÌÇØ°¡ ¾ø´Ù¸é ¾î·Á¿ï ¼ö ÀÖ½À´Ï´Ù. ¶Ç, object file, archive, archive member, resolve, load/unload, lazy binding, export/import, emulation, demangling, realtime, stub, wrapper µî Àǹ̻ó Çѱ۷Π´ëÀÀÇÏ´Â ´Ü¾î¸¦ ã±â Èûµç °æ¿ì, ¿ø¾î ¹ßÀ½À» ±×´ë·Î »ç¿ëÇÏ¿´½À´Ï´Ù.)
ld´Â ¿©·¯ ¿ÀºêÁ§Æ® ÆÄÀÏ°ú ¾ÆÄ«À̺ê ÆÄÀÏÀ» Àç¹èÄ¡ÇÏ¿© ÇÕÄ¡°í, ½Éº¼µéÀ» °áÇÕÇÑ´Ù. º¸Åë ÇÁ·Î±×·¥À» ÄÄÆÄÀÏÇÏ´Â ¸¶Áö¸· ´Ü°è·Î ld¸¦ ½ÇÇàÇÑ´Ù.

ld accepts Linker Command Language files written in a superset of AT&T's Link Editor Command Language syntax, to provide explicit and total control over the linking process.

ld´Â AT&TÀÇ ¸µÄ¿ ¸í·É ¾ð¾î ¹®¹ýÀ» È®ÀåÇÑ ¾ð¾î·Î ¾²¿©Áø ¸µÄ¿ ¸í·É¾ð¾î ÆÄÀÏÀ» Àо ¸µÅ© °úÁ¤À» ¼öÇàÇÑ´Ù.

This version of ld uses the general purpose BFD libraries to operate on object files. This allows ld to read, combine, and write object files in many different formats--for example, COFF or a.out. Different formats may be linked together to produce any available kind of object file. See section BFD, for more information.

ÀÌ ld´Â ¿ÀºêÁ§Æ® ÆÄÀÏÀ» ´Ù·ç´Â ¹ü¿ë BFD ¶óÀ̺귯¸®¸¦ »ç¿ëÇÑ´Ù. ld´Â ÀÌ ¶óÀ̺귯¸®¸¦ »ç¿ëÇÏ¿© COFF³ª a.out¿Í °°Àº ¿©·¯ ´Ù¸¥ Çü½ÄÀ¸·Î ¾²¿©Áø ¿ÀºêÁ§Æ® ÆÄÀÏÀ» ÀÐ°í °áÇÕÇÏ°í ¾´´Ù. ´Ù¸¥ Çü½Äµé·Î ¾²¿©Áø ÆÄÀϵéÀ» °áÇÕÇÏ¿© °¡´ÉÇÑ ´Ù¸¥ Çü½ÄÀÇ ¿ÀºêÁ§Æ® ÆÄÀÏÀ» ¸¸µé ¼ö ÀÖ´Ù. ÀÚ¼¼ÇÑ Á¤º¸´Â BFD¸¦ º¸¶ó.

Aside from its flexibility, the GNU linker is more helpful than other linkers in providing diagnostic information. Many linkers abandon execution immediately upon encountering an error; whenever possible, ld continues executing, allowing you to identify other errors (or, in some cases, to get an output file in spite of the error).

ÀÌ À¯¿¬ÇÔ ¿Ü¿¡µµ GNU ¸µÄ¿´Â ´Ù¸¥ ¸µÄ¿µé º¸´Ù µµ¿òÀÌ µÇ´Â ¿À·ù Á¤º¸¸¦ Á¦°øÇÑ´Ù. ¸¹Àº ¸µÄ¿µéÀº ¿À·ù°¡ ¹ß»ýÇϸé Áï½Ã ½ÇÇàÀ» Áß´ÜÇÏÁö¸¸, ld´Â °¡´ÉÇÑ ½ÇÇàÀ» °è¼ÓÇÏ¿© ´Ù¸¥ ¿À·ùµéµµ ¾Ë·ÁÁØ´Ù. (¶§·Î´Â ¿À·ù¿¡µµ ºÒ±¸ÇÏ°í Ãâ·Â ÆÄÀÏÀ» ¸¸µç´Ù.)


Go to the first, previous, next, last section, table of contents.