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



Ÿ°Ù ½Ã½ºÅÛ ¼±ÅÃÇϱâ

You can specify three aspects of the target system to the GNU binary file utilities, each in several ways:

Ÿ°Ù ½Ã½ºÅÛÀÇ 3 °¡Áö Á¤º¸¸¦ µµ±¸¿¡°Ô ¾Ë·ÁÁÙ ¼ö ÀÖ´Ù.

In the following summaries, the lists of ways to specify values are in order of decreasing precedence. The ways listed first override those listed later.

The commands to list valid values only list the values for which the programs you are running were configured. If they were configured with `--enable-targets=all', the commands list most of the available values, but a few are left out; not all targets can be configured in at once because some of them can only be configured native (on hosts with the same type as the target system).

°ªÀ» ÁöÁ¤ÇÏ´Â ¹æ¹ýÀ» ¿ì¼±¼øÀ§ ¼ø¼­·Î Àû¾îµÎ¾ú´Ù. ¸ÕÀú ³ª¿À´Â ¹æ¹ýÀÌ ´ÙÀ½¿¡ ³ª¿À´Â ¹æ¹ýÀ» ´ëüÇÑ´Ù.

°¡´ÉÇÑ °ªÀ» Ãâ·ÂÇÏ´Â ¸í·É¾î´Â ÇÁ·Î±×·¥À» ±¸¼ºÇÒ ¶§ °ª¸¸À» Ãâ·ÂÇÑ´Ù. ±¸¼ºÇÒ ¶§ `--enable-targets=all'¸¦ »ç¿ëÇß´Ù¸é, ¸í·É¾î´Â ¸î°³¸¦ Á¦¿ÜÇÏ°í ´ëºÎºÐÀÇ °ªÀ» Ãâ·ÂÇÑ´Ù. ¸î¸îÀº Ÿ°Ù ½Ã½ºÅÛ°ú °°Àº Á¾·ù¿¡¼­¸¸ °¡´ÉÇϱ⠶§¹®¿¡ ¸ðµç Ÿ°ÙÀ» »ç¿ëÇÒ ¼ö´Â ¾ø´Ù.

Ÿ°Ù ¼±ÅÃÇϱâ

A target is an object file format. A given target may be supported for multiple architectures (see section Architecture selection). A target selection may also have variations for different operating systems or architectures.

The command to list valid target values is `objdump -i' (the first column of output contains the relevant information).

Some sample values are: `a.out-hp300bsd', `ecoff-littlemips', `a.out-sunos-big'.

Ÿ°Ù(target)Àº ¿ÀºêÁ§Æ® ÆÄÀÏÀÇ Çü½ÄÀÌ´Ù. ¾î¶² Ÿ°ÙÀº ¿©·¯ ¾ÆÅ°ÅØÃÄ(Architecture selection Âü°í)¿¡¼­ »ç¿ëµÈ´Ù. ¿î¿µÃ¼Á¦¿Í ¾ÆÅ°ÅØÃĸ¶´Ù Ÿ°Ù¿¡ Â÷ÀÌ°¡ ÀÖÀ» ¼ö ÀÖ´Ù.

°¡´ÉÇÑ Å¸°ÙµéÀ» º¸·Á¸é `objdump -i'À» »ç¿ëÇÑ´Ù. (ù¹ø° ¿­¿¡ Ãâ·ÂµÈ´Ù.)

¿¹¸¦ µé¾î `a.out-hp300bsd', `ecoff-littlemips', `a.out-sunos-big'°ú °°Àº °ªµéÀÌ´Ù.

You can also specify a target using a configuration triplet. This is the same sort of name that is passed to `configure' to specify a target. When you use a configuration triplet as an argument, it must be fully canonicalized. You can see the canonical version of a triplet by running the shell script `config.sub' which is included with the sources.

Some sample configuration triplets are: `m68k-hp-bsd', `mips-dec-ultrix', `sparc-sun-sunos'.

Æ®¸®ÇÃ(¿ªÁÖ; "CPU-Á¦Á¶»ç-¿î¿µÃ¼Á¦"ÀÇ ÇüÅÂ)·Î Ÿ°ÙÀ» ÁöÁ¤ÇÒ ¼öµµ ÀÖ´Ù. À̴ Ÿ°ÙÀ» ÁöÁ¤Çϱâ À§ÇØ `configure'¿¡¼­ »ç¿ëÇÏ´Â °ª°ú °°Àº Á¾·ùÀÌ´Ù. ¾Æ±Ô¸ÕÆ®·Î Æ®¸®ÇÃÀ» »ç¿ëÇϸé ÁÙÀÌÁö ¾Ê°í ¿ÏÀüÇÑ Çüžî¾ß ÇÑ´Ù. ¼Ò½º¿¡ Æ÷ÇÔµÈ ½© ½ºÅ©¸³Æ® `config.sub'¸¦ ½ÇÇàÇÏ¿© ÀÌ °ªµéÀ» º¼ ¼ö ÀÖ´Ù.

¿¹µé µé¾î °¡´ÉÇÑ Æ®¸®ÇÃÀº `m68k-hp-bsd', `mips-dec-ultrix', `sparc-sun-sunos'°ú °°Àº °ªÀÌ´Ù.

objdump Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `-b' or `--target'
    ¸í·ÉÇà ¿É¼Ç: `-b'³ª `--target'
  2. environment variable GNUTARGET
    ȯ°æº¯¼ö GNUTARGET
  3. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

objcopy, strip ÀԷ Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line options: `-I' or `--input-target', or `-F' or `--target'
    ¸í·ÉÇà ¿É¼Ç: `-I', `--input-target', `-F', `--target'
  2. environment variable GNUTARGET
    ȯ°æº¯¼ö GNUTARGET
  3. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

objcopy, strip Ãâ·Â Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line options: `-O' or `--output-target', or `-F' or `--target'
    ¸í·ÉÇà ¿É¼Ç: `-O', `--output-target', `-F', `--target'
  2. the input target (see "objcopy and strip Input Target" above)
    ÀԷ Ÿ°Ù (À§ÀÇ "objcopy and strip Input Target" Âü°í)
  3. environment variable GNUTARGET
    ȯ°æº¯¼ö GNUTARGET
  4. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

nm, size, strings Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `--target'
    ¸í·ÉÇà ¿É¼Ç: `--target'
  2. environment variable GNUTARGET
    ȯ°æº¯¼ö GNUTARGET
  3. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

¸µÄ¿ ÀԷ Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `-b' or `--format' (see section `Options' in Using LD)
    ¸í·ÉÇà ¿É¼Ç: `-b'³ª `--format' (Using LDÀÇ `Options'¸¦ Âü°í)
  2. script command TARGET (see section `Option Commands' in Using LD)
    ½ºÅ©¸³Æ® ¸í·É¾î TARGET (Using LDÀÇ `Option Commands'¸¦ Âü°í)
  3. environment variable GNUTARGET (see section `Environment' in Using LD)
    ȯ°æº¯¼ö GNUTARGET (Using LDÀÇ `Environment'¸¦ Âü°í)
  4. the default target of the selected linker emulation (see section Linker emulation selection)
    ¼±ÅÃµÈ ¸µÄ¿ ¿¡¹Ä·¹À̼ÇÀÇ ±âº» Ÿ°Ù (Linker emulation selection Âü°í)

¸µÄ¿ Ãâ·Â Ÿ°Ù

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `-oformat' (see section `Options' in Using LD)
    ¸í·ÉÇà ¿É¼Ç: `-oformat' (Using LDÀÇ `Options'¸¦ Âü°í)
  2. script command OUTPUT_FORMAT (see section `Option Commands' in Using LD)
    ½ºÅ©¸³Æ® ¸í·É¾î OUTPUT_FORMAT (Using LDÀÇ `Option Commands'¸¦ Âü°í)
  3. the linker input target (see "Linker Input Target" above)
    ¸µÄ¿ ÀԷ Ÿ°Ù (À§ÀÇ "Linker Input Target"¸¦ Âü°í)

¾ÆÅ°ÅØÃÄ ¼±ÅÃÇϱâ

An architecture is a type of CPU on which an object file is to run. Its name may contain a colon, separating the name of the processor family from the name of the particular CPU.

The command to list valid architecture values is `objdump -i' (the second column contains the relevant information).

Sample values: `m68k:68020', `mips:3000', `sparc'.

¾ÆÅ°ÅØÃÄ(architecture)´Â ¿ÀºêÁ§Æ® ÆÄÀÏÀÌ ½ÇÇàµÇ´Â CPU Á¾·ùÀÌ´Ù. À̸§Àº ÇÁ·Î¼¼¼­±º À̸§°ú ƯÁ¤ CPU À̸§À» ±¸ºÐÇÏ´Â `:'À» Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.

°¡´ÉÇÑ ¾ÆÅ°ÅØÃÄ´Â `objdump -i'·Î ¾Ë ¼ö ÀÖ´Ù. (µÎ¹ø° ¿­¿¡ Ãâ·ÂµÈ´Ù.)

¿¹¸¦ µé¾î `m68k:68020', `mips:3000', `sparc'°ú °°Àº °ªµéÀÌ´Ù.

objdump ¾ÆÅ°ÅØÃÄ

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `-m' or `--architecture'
    ¸í·ÉÇà ¿É¼Ç: `-m'À̳ª `--architecture'
  2. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

objcopy, nm, size, strings ¾ÆÅ°ÅØÃÄ

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

¸µÄ¿ ÀÔ·Â ¾ÆÅ°ÅØÃÄ

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. deduced from the input file
    ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

¸µÄ¿ Ãâ·Â ¾ÆÅ°ÅØÃÄ

Ways to specify:
ÀÔ·Â ÆÄÀÏ¿¡¼­ ÆÇ´Ü

  1. script command OUTPUT_ARCH (see section `Option Commands' in Using LD)
    ½ºÅ©¸³Æ® ¸í·É¾î OUTPUT_ARCH (Using LDÀÇ `Option Commands'¸¦ Âü°í)
  2. the default architecture from the linker output target (see section Target Selection)
    ¸µÄ¿ Ãâ·Â Ÿ°ÙÀÇ ±âº» ¾ÆÅ°ÅØÃÄ (Target Selection Âü°í)

¸µÄ¿ ¿¡¹Ä·¹ÀÌ¼Ç ¼±ÅÃÇϱâ

A linker emulation is a "personality" of the linker, which gives the linker default values for the other aspects of the target system. In particular, it consists of
¸µÄ¿ ¿¡¹Ä·¹À̼Ç(emulation)Àº ¸µÄ¿¿¡°Ô Ÿ°Ù ½Ã½ºÅÛ¿¡ ´ëÇÑ ¸¹Àº ±âº»°ªÀ» Á¦°øÇÑ´Ù. ¿¡¹Ä·¹À̼ÇÀº ´ÙÀ½À» Æ÷ÇÔÇÑ´Ù.

The command to list valid linker emulation values is `ld -V'.

Sample values: `hp300bsd', `mipslit', `sun4'.

°¡´ÉÇÑ ¸µÄ¿ ¿¡¹Ä·¹À̼ÇÀº `ld -V'·Î ¾Ë ¼ö ÀÖ´Ù.

¿¹¸¦ µé¾î `hp300bsd', `mipslit', `sun4'°ú °°Àº °ªÀÌ´Ù.

Ways to specify:

´ÙÀ½ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇÑ´Ù.

  1. command line option: `-m' (see section `Options' in Using LD)
    ¸í·ÉÇà ¿É¼Ç: `-m' (Using LDÀÇ `Options'¸¦ Âü°í)
  2. environment variable LDEMULATION
    ȯ°æº¯¼ö LDEMULATION
  3. compiled-in DEFAULT_EMULATION from `Makefile', which comes from EMUL in `config/target.mt'
    ÄÄÆÄÀϽà `Makefile'ÀÇ DEFAULT_EMULATION. ÀÌ °ªÀº `config/target.mt'ÀÇ EMULÀÌ °áÁ¤ÇÑ´Ù.


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