Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

124 Zeilen
5.8KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU linker LD
  4. (GNU Arm Embedded Toolchain 10-2020-q4-major)
  5. version 2.35.1.
  6. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  7. Permission is granted to copy, distribute and/or modify this document
  8. under the terms of the GNU Free Documentation License, Version 1.3
  9. or any later version published by the Free Software Foundation;
  10. with no Invariant Sections, with no Front-Cover Texts, and with no
  11. Back-Cover Texts. A copy of the license is included in the
  12. section entitled "GNU Free Documentation License". -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>BFD information loss (LD)</title>
  17. <meta name="description" content="BFD information loss (LD)">
  18. <meta name="keywords" content="BFD information loss (LD)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="LD-Index.html#LD-Index" rel="index" title="LD Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="BFD-outline.html#BFD-outline" rel="up" title="BFD outline">
  26. <link href="Canonical-format.html#Canonical-format" rel="next" title="Canonical format">
  27. <link href="BFD-outline.html#BFD-outline" rel="prev" title="BFD outline">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="BFD-information-loss"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Canonical-format.html#Canonical-format" accesskey="n" rel="next">Canonical format</a>, Up: <a href="BFD-outline.html#BFD-outline" accesskey="u" rel="up">BFD outline</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="LD-Index.html#LD-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="Information-Loss"></a>
  64. <h4 class="subsection">5.1.1 Information Loss</h4>
  65. <p><em>Information can be lost during output.</em> The output formats
  66. supported by BFD do not provide identical facilities, and
  67. information which can be described in one form has nowhere to go in
  68. another format. One example of this is alignment information in
  69. <code>b.out</code>. There is nowhere in an <code>a.out</code> format file to store
  70. alignment information on the contained data, so when a file is linked
  71. from <code>b.out</code> and an <code>a.out</code> image is produced, alignment
  72. information will not propagate to the output file. (The linker will
  73. still use the alignment information internally, so the link is performed
  74. correctly).
  75. </p>
  76. <p>Another example is COFF section names. COFF files may contain an
  77. unlimited number of sections, each one with a textual section name. If
  78. the target of the link is a format which does not have many sections (e.g.,
  79. <code>a.out</code>) or has sections without names (e.g., the Oasys format), the
  80. link cannot be done simply. You can circumvent this problem by
  81. describing the desired input-to-output section mapping with the linker command
  82. language.
  83. </p>
  84. <p><em>Information can be lost during canonicalization.</em> The BFD
  85. internal canonical form of the external formats is not exhaustive; there
  86. are structures in input formats for which there is no direct
  87. representation internally. This means that the BFD back ends
  88. cannot maintain all possible data richness through the transformation
  89. between external to internal and back to external formats.
  90. </p>
  91. <p>This limitation is only a problem when an application reads one
  92. format and writes another. Each BFD back end is responsible for
  93. maintaining as much data as possible, and the internal BFD
  94. canonical form has structures which are opaque to the BFD core,
  95. and exported only to the back ends. When a file is read in one format,
  96. the canonical form is generated for BFD and the application. At the
  97. same time, the back end saves away any information which may otherwise
  98. be lost. If the data is then written back in the same format, the back
  99. end routine will be able to use the canonical form provided by the
  100. BFD core as well as the information it prepared earlier. Since
  101. there is a great deal of commonality between back ends,
  102. there is no information lost when
  103. linking or copying big endian COFF to little endian COFF, or <code>a.out</code> to
  104. <code>b.out</code>. When a mixture of formats is linked, the information is
  105. only lost from the files whose format differs from the destination.
  106. </p>
  107. <hr>
  108. <div class="header">
  109. <p>
  110. Next: <a href="Canonical-format.html#Canonical-format" accesskey="n" rel="next">Canonical format</a>, Up: <a href="BFD-outline.html#BFD-outline" accesskey="u" rel="up">BFD outline</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="LD-Index.html#LD-Index" title="Index" rel="index">Index</a>]</p>
  111. </div>
  112. </body>
  113. </html>