File: link.ld

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (34 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PHDRS
{
  elf_headers PT_LOAD FILEHDR PHDRS FLAGS(PF_R) ;
  text PT_LOAD FLAGS(PF_R | PF_X) ;
  data PT_LOAD FLAGS(PF_R | PF_W) ;
  bss PT_LOAD FLAGS(PF_R | PF_W) ;
  note PT_NOTE FLAGS(PF_R) ;
}

SECTIONS
{
  .text : {
    *(.text .text.* .gnu.linkonce.t.*)
  } :text

  .rela.dyn : {
    *(.rela.dyn)
  } :text

  .bss . (NOLOAD): {
    *(.bss)
    *(COMMON)
  } :bss

  .note : ALIGN(8) {
    KEEP(*(.note.custom))
  } :text :note

  /DISCARD/ : {
    *(.note.gnu*)
    *(.note.ABI-tag)
  }
}