File: contiguous-note-sections.ld

package info (click to toggle)
patchelf 0.18.0-1.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,464 kB
  • sloc: cpp: 5,481; sh: 940; makefile: 194; ansic: 44; asm: 20
file content (24 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PHDRS
{
  headers PT_PHDR PHDRS ;
  notes PT_NOTE;
  text PT_LOAD FILEHDR PHDRS ;
  data PT_LOAD ;
  interp PT_INTERP ;
  dynamic PT_DYNAMIC ;
}

SECTIONS
{
  . = SIZEOF_HEADERS;
  . = ALIGN(4);

  .note.my-section0 : { *(.note.my-section0) } :notes :text
  .note.my-section1 : { *(.note.my-section1) } :notes :text

  .interp : { *(.interp) } :text :interp
  .text : { *(.text) } :text
  .rodata : { *(.rodata) } /* defaults to :text */

  .data : { *(.data) } :data
}