No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

160 líneas
6.9KB

  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>SPU ELF (LD)</title>
  17. <meta name="description" content="SPU ELF (LD)">
  18. <meta name="keywords" content="SPU ELF (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="Machine-Dependent.html#Machine-Dependent" rel="up" title="Machine Dependent">
  26. <link href="TI-COFF.html#TI-COFF" rel="next" title="TI COFF">
  27. <link href="S_002f390-ELF.html#S_002f390-ELF" rel="prev" title="S/390 ELF">
  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="SPU-ELF"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="TI-COFF.html#TI-COFF" accesskey="n" rel="next">TI COFF</a>, Previous: <a href="S_002f390-ELF.html#S_002f390-ELF" accesskey="p" rel="prev">S/390 ELF</a>, Up: <a href="Machine-Dependent.html#Machine-Dependent" accesskey="u" rel="up">Machine Dependent</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="ld-and-SPU-ELF-Support"></a>
  64. <h3 class="section">4.14 <code>ld</code> and SPU ELF Support</h3>
  65. <a name="index-SPU-ELF-options"></a>
  66. <dl compact="compact">
  67. <dd>
  68. <a name="index-SPU-plugins"></a>
  69. <a name="index-_002d_002dplugin"></a>
  70. </dd>
  71. <dt><samp>--plugin</samp></dt>
  72. <dd><p>This option marks an executable as a PIC plugin module.
  73. </p>
  74. <a name="index-SPU-overlays"></a>
  75. <a name="index-_002d_002dno_002doverlays"></a>
  76. </dd>
  77. <dt><samp>--no-overlays</samp></dt>
  78. <dd><p>Normally, <code>ld</code> recognizes calls to functions within overlay
  79. regions, and redirects such calls to an overlay manager via a stub.
  80. <code>ld</code> also provides a built-in overlay manager. This option
  81. turns off all this special overlay handling.
  82. </p>
  83. <a name="index-SPU-overlay-stub-symbols"></a>
  84. <a name="index-_002d_002demit_002dstub_002dsyms-2"></a>
  85. </dd>
  86. <dt><samp>--emit-stub-syms</samp></dt>
  87. <dd><p>This option causes <code>ld</code> to label overlay stubs with a local
  88. symbol that encodes the stub type and destination.
  89. </p>
  90. <a name="index-SPU-extra-overlay-stubs"></a>
  91. <a name="index-_002d_002dextra_002doverlay_002dstubs"></a>
  92. </dd>
  93. <dt><samp>--extra-overlay-stubs</samp></dt>
  94. <dd><p>This option causes <code>ld</code> to add overlay call stubs on all
  95. function calls out of overlay regions. Normally stubs are not added
  96. on calls to non-overlay regions.
  97. </p>
  98. <a name="index-SPU-local-store-size"></a>
  99. <a name="index-_002d_002dlocal_002dstore_003dlo_003ahi"></a>
  100. </dd>
  101. <dt><samp>--local-store=lo:hi</samp></dt>
  102. <dd><p><code>ld</code> usually checks that a final executable for SPU fits in
  103. the address range 0 to 256k. This option may be used to change the
  104. range. Disable the check entirely with <samp>--local-store=0:0</samp>.
  105. </p>
  106. <a name="index-SPU"></a>
  107. <a name="index-_002d_002dstack_002danalysis"></a>
  108. </dd>
  109. <dt><samp>--stack-analysis</samp></dt>
  110. <dd><p>SPU local store space is limited. Over-allocation of stack space
  111. unnecessarily limits space available for code and data, while
  112. under-allocation results in runtime failures. If given this option,
  113. <code>ld</code> will provide an estimate of maximum stack usage.
  114. <code>ld</code> does this by examining symbols in code sections to
  115. determine the extents of functions, and looking at function prologues
  116. for stack adjusting instructions. A call-graph is created by looking
  117. for relocations on branch instructions. The graph is then searched
  118. for the maximum stack usage path. Note that this analysis does not
  119. find calls made via function pointers, and does not handle recursion
  120. and other cycles in the call graph. Stack usage may be
  121. under-estimated if your code makes such calls. Also, stack usage for
  122. dynamic allocation, e.g. alloca, will not be detected. If a link map
  123. is requested, detailed information about each function&rsquo;s stack usage
  124. and calls will be given.
  125. </p>
  126. <a name="index-SPU-1"></a>
  127. <a name="index-_002d_002demit_002dstack_002dsyms"></a>
  128. </dd>
  129. <dt><samp>--emit-stack-syms</samp></dt>
  130. <dd><p>This option, if given along with <samp>--stack-analysis</samp> will result
  131. in <code>ld</code> emitting stack sizing symbols for each function.
  132. These take the form <code>__stack_&lt;function_name&gt;</code> for global
  133. functions, and <code>__stack_&lt;number&gt;_&lt;function_name&gt;</code> for static
  134. functions. <code>&lt;number&gt;</code> is the section id in hex. The value of
  135. such symbols is the stack requirement for the corresponding function.
  136. The symbol size will be zero, type <code>STT_NOTYPE</code>, binding
  137. <code>STB_LOCAL</code>, and section <code>SHN_ABS</code>.
  138. </p></dd>
  139. </dl>
  140. <hr>
  141. <div class="header">
  142. <p>
  143. Next: <a href="TI-COFF.html#TI-COFF" accesskey="n" rel="next">TI COFF</a>, Previous: <a href="S_002f390-ELF.html#S_002f390-ELF" accesskey="p" rel="prev">S/390 ELF</a>, Up: <a href="Machine-Dependent.html#Machine-Dependent" accesskey="u" rel="up">Machine Dependent</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>
  144. </div>
  145. </body>
  146. </html>