Your bug reports play an essential role in making ld
reliable.
Reporting a bug may help you by bringing a solution to your problem, or
it may not. But in any case the principal function of a bug report is
to help the entire community by making the next version of ld
work better. Bug reports are your contribution to the maintenance of
ld
.
In order for a bug report to serve its purpose, you must include the
information that enables us to fix the bug.
¹ö±×¸¦ ¾Ë·ÁÁÖ¸é
¹ö±×¸¦ ¾Ë·ÁÁÖ¸é ´ç½ÅÀÇ ¹®Á¦¸¦ ÇØ°áÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª ´õ Áß¿äÇÏ°Ô
´ÙÀ½
¹ö±×¸¦ ¾Ë·ÁÁÖ´Â °ÍÀÌ ÀÌ·± ¸ñÀûÀ» ¸¸Á·ÇÏ·Á¸é ¿ì¸®°¡ ¹ö±×¸¦ °íÄ¡´Âµ¥
ÇÊ¿äÇÑ Á¤º¸¸¦ Æ÷ÇÔÇØ¾ß ÇÑ´Ù.
ld
¸¦ Çâ»ó½ÃÅ°´Âµ¥ Å« µµ¿òÀÌ µÈ´Ù.
ld
°¡ ´õ Àß ÀÛµ¿ÇÏ¿© ¸ðµç °øµ¿Ã¼¿¡ µµ¿òÀÌ µÈ´Ù.
´ç½ÅÀÌ ¹ö±×¸¦ ¾Ë·ÁÁÖ¸é ld
¿¡ ±â¿©ÇÏ´Â °ÍÀÌ´Ù.
¹ö±×¸¦ ã¾Ò³ª¿ä?
If you are not sure whether you have found a bug, here are some guidelines:
¹ö±×¸¦ ã¾Ò´ÂÁö È®½ÅÀÌ µéÁö ¾Ê´Ù¸é ´ÙÀ½À» Âü°íÇ϶ó.
ld
bug. Reliable linkers never crash.
ld
produces an error message for valid input, that is a bug.
ld
does not produce an error message for invalid input, that
may be a bug. In the general case, the linker can not verify that
object files are correct.
ld
are welcome in any case.
ld
¹ö±×ÀÌ´Ù.
¾ÈÁ¤ÀûÀÎ ¸µÄ¿´Â °áÄÚ ºñÁ¤»óÀûÀ¸·Î Á¾·áÇÏÁö ¾Ê´Â´Ù.
ld
°¡ Á¤»óÀûÀÎ ÀԷ¿¡ ¿À·ù¹®À» Ãâ·ÂÇÏ¸é ¹ö±×ÀÌ´Ù.
ld
°¡ ºñÁ¤»óÀûÀÎ ÀԷ¿¡ ¿À·ù¹®À» Ãâ·ÂÇÏÁö ¾ÊÀ¸¸é ¹ö±×ÀÏ ¼ö ÀÖ´Ù.
ÀϹÝÀûÀÎ °æ¿ì ¸µÄ¿´Â ¿ÀºêÁ§Æ® ÆÄÀÏÀÌ ¿Ã¹Ù¸¥Áö È®ÀÎÇÏÁö ¾Ê´Â´Ù.
ld
¸¦ Çâ»ó½Ãų ¼ö ÀÖ´Â
¹æ¹ýµµ ȯ¿µÇÑ´Ù.
A number of companies and individuals offer support for GNU
products. If you obtained ld
from a support organization, we
recommend you contact that organization first.
You can find contact information for many support companies and individuals in the file `etc/SERVICE' in the GNU Emacs distribution.
Otherwise, send bug reports for
¸¹Àº ȸ»ç¿Í °³ÀÎÀÌ GNU Á¦Ç°¿¡ Áö¿øÀ» Á¦°øÇÑ´Ù. Áö¿ø ȸ»ç¿¡¼
GNU Emacs ¼Ò½º ÆÄÀÏ `etc/SERVICE'¿¡¼ ¸¹Àº Áö¿ø ȸ»ç¿Í
°³Àο¡ ´ëÇÑ ¿¬¶ôó¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
±×·¸Áö ¾ÊÀ¸¸é `bug-binutils@gnu.org'·Î ld
to
`bug-binutils@gnu.org'.
ld
¸¦ ¾ò¾ú´Ù¸é ¸ÕÀú ±× ȸ»ç¿Í ¿¬¶ôÇÒ °ÍÀ» ±ÇÀåÇÑ´Ù.
ld
¹ö±×¸¦
º¸³»¶ó.
The fundamental principle of reporting bugs usefully is this: report all the facts. If you are not sure whether to state a fact or leave it out, state it!
Often people omit facts because they think they know what causes the
problem and assume that some details do not matter. Thus, you might
assume that the name of a symbol you use in an example does not matter.
Well, probably it does not, but one cannot be sure. Perhaps the bug is
a stray memory reference which happens to fetch from the location where
that name is stored in memory; perhaps, if the name were different, the
contents of that location would fool the linker into doing the right
thing despite the bug. Play it safe and give a specific, complete
example. That is the easiest thing for you to do, and the most helpful.
¹ö±×¸¦ ¾Ë¸®´Âµ¥ ±âº»ÀûÀÎ ±ÔÄ¢Àº ¸ðµç »ç½ÇÀ» ¾Ë¸®´Â °ÍÀÌ´Ù.
¹«¾ùÀ» ¸»ÇؾßÇÒÁö ¸»ÇÏÁö ¾Ê¾Æ¾ßÇÒ Áö°¡ ºÒÈ®½ÇÇϸé, ±×°ÍÀ» ¸»Çضó!
ÈçÈ÷ ¹®Á¦¸¦ ÀÏÀ¸Å°´Â ÀÌÀ¯¸¦ ¾Ë°í ÀÖ´Ù°í »ý°¢ÇÏ°í ¾î¶² ºÎºÐÀ» Áß¿äÇÏÁö
¾Ê´Ù°í »ý°¢Çϱ⠶§¹®¿¡ »ç½ÇÀ» »ý·«ÇÑ´Ù. ¿¹¸¦ µé¾î ´ç½ÅÀº ½Éº¼ À̸§ÀÌ
Áß¿äÇÏÁö ¾Ê´Ù°í °¡Á¤ÇÒ ¼ö ÀÖ´Ù. ±×·¯³ª ±×·¯Áö ¾ÊÀ» ¼ö ÀÖ°í, ´©±¸µµ
È®½ÅÇÒ ¼ö ¾ø´Ù. ¾Æ¸¶µµ ¹ö±×´Â ¸Þ¸ð¸®¿¡ À̸§ÀÌ ÀúÀåµÈ Àå¼Ò¿¡ ¸Þ¸ð¸® ÂüÁ¶¸¦
À߸øÇßÀ» ¼öµµ ÀÖ´Ù. ¶Ç, À̸§ÀÌ ´Ù¸£¸é ¹ö±×¿¡µµ ºÒ±¸ÇÏ°í
¸µÄ¿°¡ ¿Ã¹Ù¸£°Ô ÀÛµ¿ÇÏ°í ÀÖ´Â °Íó·³ º¸ÀÏ ¼öµµ ÀÖ´Ù. ¾ÈÀüÇÏ°Ô ¿ÏÀüÇÑ ¿¹¸¦
ÁÖ¶ó. ÀÌ´Â °¡Àå ½±°í µµ¿òÀÌ µÈ´Ù.
Keep in mind that the purpose of a bug report is to enable us to fix the bug if it is new to us. Therefore, always write your bug reports on the assumption that the bug has not been reported previously.
Sometimes people give a few sketchy facts and ask, "Does this ring a bell?" Those bug reports are useless, and we urge everyone to refuse to respond to them except to chide the sender to report bugs properly.
To enable us to fix the bug, you should include all these things:
¹ö±×¸¦ ¾Ë¸®´Â ¸ñÀûÀÌ ¿ì¸®°¡ ¸ð¸£´Â ¹ö±×¸¦ °íÄ¡´Â °ÍÀÓÀ» ¿°µÎÇÏÀÚ.
±×·¡¼ Ç×»ó Àü¿¡ ¿ì¸®°¡ ±× ¹ö±×¸¦ ¸ð¸¥´Ù°í °¡Á¤ÇÏ°í ¾Ë·ÁÁÖ±æ ¹Ù¶õ´Ù.
°¡²û °£´ÜÇÑ »ç½Ç¸¸À» ÁÖ´Â °æ¿ì°¡ ÀÖ´Ù. ÀÌ·± °ÍÀº µµ¿òÀÌ ¾ÈµÇ°í,
¿ì¸®´Â ¸ðµÎ¿¡¼ ¹ö±×¸¦ ¿Ã¹Ù·Î ¾Ë¸®¶ó´Â °Í ¿ÜÀÇ ´äÀåÀ» °ÅÀýÇ϶ó°í
¸»ÇÑ´Ù.
¿ì¸®°¡ ¹ö±×¸¦ °íÄ¥ ¼ö ÀÖ°Ô Çϱâ À§ÇØ ´ÙÀ½À» ¸ðµÎ Æ÷ÇÔÇØ¾ß ÇÑ´Ù.
ld
. ld
announces it if you start it with
the `--version' argument.
Without this, we will not know whether there is any point in looking for
the bug in the current version of ld
.
ld
¹öÀü. ld
´Â `--version' ¿É¼ÇÀ»
»ç¿ëÇÏ¸é ½ÃÀÛÇÒ ¶§ ¹öÀüÀ» ¾Ë·ÁÁØ´Ù.
¹öÀüÀÌ ¾ø´Ù¸é ¿ì¸®´Â ¾î´À ¹öÀü¿¡¼ ¹ö±×¸¦ ã¾Æ¾ß ÇÒÁö ¸ð¸¥´Ù.
ld
source, including any
patches made to the BFD
library.
BFD
¶óÀ̺귯¸®¿¡ Àû¿ëÇÑ ÆÐÄ¡¸¦ Æ÷ÇÔÇÏ¿©
ld
¼Ò½º¿¡ Àû¿ëÇÑ ÆÐÄ¡
ld
---e.g.
"gcc-2.7
".
gcc-2.7
"°ú °°ÀÌ ld
¸¦ ÄÄÆÄÀÏÇÑ ÄÄÆÄÀÏ·¯ (¿Í ¹öÀü)
gas
or compiled using
gcc
, then it may be OK to send the source files rather than the
object files. In this case, be sure to say exactly what version of
gas
or gcc
was used to produce the object files. Also say
how gas
or gcc
were configured.
gas
·Î ¾î¼ÀºíµÇ¾ú°Å³ª gcc
·Î ÄÄÆÄÀÏ µÇ¾ú´Ù¸é
¿ÀºêÁ§Æ® ÆÄÀÏ ´ë½Å ¼Ò½ºÆÄÀÏÀ» º¸³»µµ µÈ´Ù. ÀÌ °æ¿ì ¿ÀºêÁ§Æ® ÆÄÀÏÀ» »ý¼ºÇÑ
gas
³ª gcc
ÀÇ ¹öÀüÀ» Á¤È®È÷ ¾Ë·ÁÁà¾ß ÇÑ´Ù.
¶ÇÇÑ ¾î¶»°Ô gas
³ª gcc
°¡ ¼³Á¤µÇ¾ú´ÂÁöµµ ¾Ë·Á¶ó.
ld
gets a fatal signal, then we
will certainly notice it. But if the bug is incorrect output, we might
not notice unless it is glaringly wrong. You might as well not give us
a chance to make a mistake.
Even if the problem you experience is a fatal signal, you should still
say so explicitly. Suppose something strange is going on, such as, your
copy of ld
is out of synch, or you have encountered a bug in the
C library on your system. (This has happened!) Your copy might crash
and ours would not. If you told us to expect a crash, then when ours
fails to crash, we would know that the bug was not happening for us. If
you had not told us to expect a crash, then we would not be able to draw
any conclusion from our observations.
ld
°¡ Ä¡¸íÀûÀÎ ½Ã±×³ÎÀ» ¹ß»ýÇÏ´Â °ÍÀÌ ¹ö±×À̸é È®½ÇÈ÷
ãÀ» ¼ö ÀÖ´Ù.
±×·¯³ª ºÒ¿ÏÀüÇÑ ÀÔ·ÂÀÌ ¹ö±×ÀÇ ¿øÀÎÀ̶ó¸é ±×°ÍÀÌ µÎµå·¯Áö°Ô À߸øµÇÁö ¾Ê¾Ò´Ù¸é
¹ß°ßÀ» ¸øÇÒ ¼öµµ ÀÖ´Ù. ¿ì¸®°¡ ½Ç¼ö¸¦ ÇÏÁö ¾Êµµ·Ï µµ¿ÍÁֱ⸦ ¹Ù¶õ´Ù.
°æÇèÇÑ ¹®Á¦°¡ Ä¡¸íÀûÀÎ ½Ã±×³ÎÀ̶ó ÇÒÁö¶óµµ À̸¦ ¸íÈ®È÷ ¸»ÇØÁà¾ß ÇÑ´Ù.
´ç½ÅÀÇ ld
°¡ ¿À·¡µÇ¾ú°Å³ª ½Ã½ºÅÛÀÇ C ¶óÀ̺귯¸®¿¡ ¹ö±×°¡
ÀÖ¾ú´Ù´Â °Í (½ÇÁ¦·Î ÀÏ¾î³ ÀûÀÌ ÀÖ´Ù!) °°Àº ÀÌ»óÇÑ Àϵ鵵 ÁüÀÛÇغÁ¶ó.
´ç½ÅÀÇ ld
´Â ¿À·ù¸¦ ³»°í, ¿ì¸®ÀÇ ld
´Â ±×·¯Áö
¾ÊÀ» ¼öµµ ÀÖ´Ù. ±â´ëÇÑ ¿À·ù°¡ ¿ì¸®¿¡°Ô ¹ß»ýÇÏÁö ¾ÊÀ¸¸é ¿ì¸®´Â
¹ö±×¸¦ ¾Ë ¼ö ¾ø´Ù. ¿À·ù¿¡ ´ëÇØ ¸»ÇØÁÖÁö ¾ÊÀ¸¸é ¿ì¸®´Â ¾î¶² °á·Ðµµ
¾òÀ» ¼ö ¾ø´Ù.
ld
source, send us context
diffs, as generated by diff
with the `-u', `-c', or
`-p' option. Always send diffs from the old file to the new file.
If you even discuss something in the ld
source, refer to it by
context, not by line number.
The line numbers in our development sources will not match those in your
sources. Your line numbers would convey no useful information to us.
ld
¼Ò½º¿¡ ¼öÁ¤À» Á¦¾ÈÇÑ´Ù¸é, ¿ì¸®¿¡¼ diff
ÀÇ
`-u'³ª `-c', `-p' ¿É¼ÇÀ¸·Î »ý¼ºÇÑ
°á°ú¸¦ º¸·¡¶ó. Ç×»ó ¿À·¡µÈ ÆÄÀÏ¿¡¼ »õ·Î¿î ÆÄÀÏ·Î ºñ±³ÇÑ °á°ú¸¦ º¸³»¶ó.
ld
¼Ò½º¿¡¼ ¾î¶² °ÍÀ» ¼³¸íÇÒ ¶§ ÁÙ¹øÈ£ ´ë½Å ¹®¸Æ»óÀ¸·Î
ÁöĪÇ϶ó.
°³¹ß ¼Ò½ºÀÇ ÁÙ¹øÈ£´Â ´ç½ÅÀÌ °¡Áö°í ÀÖ´Â ¼Ò½ºÀÇ °Í°ú ÀÏÄ¡ÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù.
±×·¡¼ ÁÙ¹øÈ£´Â ¿ì¸®¿¡°Ô À¯¿ëÇÏÁö ¾Ê´Ù.
Here are some things that are not necessary:
´ÙÀ½Àº ÇÊ¿äÇÏÁö ¾Ê´Ù.
ld
it is very hard to
construct an example that will make the program follow a certain path
through the code. If you do not send us the example, we will not be
able to construct one, so we will not be able to verify that the bug is
fixed.
And if we cannot understand what bug you are trying to fix, or why your
patch should be an improvement, we will not install it. A test case will
help us to understand.
ld
°ú °°ÀÌ º¹ÀâÇÑ ÇÁ·Î±×·¥¿¡¼ Äڵ尡 ƯÁ¤ÇÑ ¹æÇâÀ¸·Î
½ÇÇàµÇ°Ô ÇÏ´Â ¿¹¸¦ ¸¸µé±â ¸Å¿ì ¾î·Á¿ï ¼ö ÀÖ´Ù. ¿ì¸®¿¡°Ô ¿¹Á¦¸¦
º¸³»ÁÖÁö ¾ÊÀ¸¸é ¿ì¸®´Â ¿¹Á¦¸¦ ¸¸µé ¼ö ¾ø°í ¹ö±×°¡ °íÃÄÁ³´ÂÁö È®ÀÎÇÒ
¼ö ¾ø´Ù.
¶Ç ´ç½ÅÀÌ °íÄ¡·Á´Â ¹ö±×³ª ¿Ö ÆÐÄ¡°¡ ÇÊ¿äÇÑÁö ÀÌÇØÇÏÁö ¸øÇÏ¸é ±×°ÍÀ»
Æ÷ÇÔÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù. °Ë»çÇÑ °æ¿ìµéÀÌ ÀÌ °æ¿ì µµ¿òÀÌ µÈ´Ù.
Go to the first, previous, next, last section, table of contents.