⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 output-section-discarding.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Untitled</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Untitled">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Output%20Section%20Discarding">Output Section Discarding</a>,

Next:<a rel="next" accesskey="n" href="Output-Section-Attributes.html#Output%20Section%20Attributes">Output Section Attributes</a>,

Previous:<a rel="previous" accesskey="p" href="Output-Section-Keywords.html#Output%20Section%20Keywords">Output Section Keywords</a>,

Up:<a rel="up" accesskey="u" href="SECTIONS.html#SECTIONS">SECTIONS</a>

<hr><br>

</div>



<h4 class="subsection">Output section discarding</h4>



   <p>The linker will not create output section which do not have any

contents.  This is for convenience when referring to input sections that

may or may not be present in any of the input files.  For example:

<pre class="smallexample">     .foo { *(.foo) }

     </pre>



<p>will only create a <code>.foo</code> section in the output file if there is a

<code>.foo</code> section in at least one input file.



   <p>If you use anything other than an input section description as an output

section command, such as a symbol assignment, then the output section

will always be created, even if there are no matching input sections.



   <p>The special output section name <code>/DISCARD/</code> may be used to discard

input sections.  Any input sections which are assigned to an output

section named <code>/DISCARD/</code> are not included in the output file.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -