summaryrefslogtreecommitdiff
path: root/src/user/runtimes/c/elf.ld
blob: 3e9a034fd306af889f850e55040b1b32a9222bcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
OUTPUT_FORMAT(elf32-i386)
OUTPUT_ARCH(i386)
ENTRY(__pcrt_entry)

MEMORY {
  kernel (!a) : ORIGIN = 0x00000000, LENGTH = 0x08000000
  user  (awx) : ORIGIN = 0x08000000, LENGTH = 0xf8000000
}

SECTIONS {
  .__pcrt_before_main : {
    __pcrt_before_main_start = .;
    *(.__pcrt_before_main)
    *(.init_array)
    __pcrt_before_main_end = .;
  }

  .__pcrt_before_quit : {
    __pcrt_before_quit_start = .;
    *(.__pcrt_before_quit)
    __pcrt_before_quit_end = .;
  }
}