output-section-phdr.html

来自「gcc手册」· HTML 代码 · 共 35 行

HTML
35
字号
<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%20Phdr">Output Section Phdr</a>,

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

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

Up:<a rel="up" accesskey="u" href="Output-Section-Attributes.html#Output%20Section%20Attributes">Output Section Attributes</a>

<hr><br>

</div>



<h5 class="subsubsection">Output section phdr</h5>



   <p>You can assign a section to a previously defined program segment by

using <code>:</code><var>phdr</var><code></code>.  See <a href="PHDRS.html#PHDRS">PHDRS</a>.  If a section is assigned to

one or more segments, then all subsequent allocated sections will be

assigned to those segments as well, unless they use an explicitly

<code>:</code><var>phdr</var><code></code> modifier.  You can use <code>:NONE</code> to tell the

linker to not put the section in any segment at all.



   <p>Here is a simple example:

<pre class="smallexample">     PHDRS { text PT_LOAD ; }

     SECTIONS { .text : { *(.text) } :text }

     </pre>



   </body></html>



⌨️ 快捷键说明

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