GNU Info

Info Node: (ld.info)Output Section Phdr

(ld.info)Output Section Phdr


Next: Output Section Fill Prev: Output Section Region Up: Output Section Attributes
Enter node , (file) or (file)node

Output section phdr
...................

   You can assign a section to a previously defined program segment by
using `:PHDR'.  Note: PHDRS.  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 `:PHDR' modifier.
You can use `:NONE' to tell the linker to not put the section in any
segment at all.

   Here is a simple example:
     PHDRS { text PT_LOAD ; }
     SECTIONS { .text : { *(.text) } :text }


automatically generated by info2www version 1.2.2.9