📄 linkonce.html
字号:
<html lang="en">
<head>
<title>Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<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="Linkonce">Linkonce</a>,
Next:<a rel="next" accesskey="n" href="List.html#List">List</a>,
Previous:<a rel="previous" accesskey="p" href="Ln.html#Ln">Ln</a>,
Up:<a rel="up" accesskey="u" href="Pseudo-Ops.html#Pseudo%20Ops">Pseudo Ops</a>
<hr><br>
</div>
<h3 class="section"><code>.linkonce [</code><var>type</var><code>]</code></h3>
<p>Mark the current section so that the linker only includes a single copy of it.
This may be used to include the same section in several different object files,
but ensure that the linker will only include it once in the final output file.
The <code>.linkonce</code> pseudo-op must be used for each instance of the section.
Duplicate sections are detected based on the section name, so it should be
unique.
<p>This directive is only supported by a few object file formats; as of this
writing, the only object file format which supports it is the Portable
Executable format used on Windows NT.
<p>The <var>type</var> argument is optional. If specified, it must be one of the
following strings. For example:
<pre class="smallexample"> .linkonce same_size
</pre>
Not all types may be supported on all object file formats.
<dl>
<dt><code>discard</code>
<dd>Silently discard duplicate sections. This is the default.
<br><dt><code>one_only</code>
<dd>Warn if there are duplicate sections, but still keep only one copy.
<br><dt><code>same_size</code>
<dd>Warn if any of the duplicates have different sizes.
<br><dt><code>same_contents</code>
<dd>Warn if any of the duplicates do not have exactly the same contents.
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -