* libcurses++, libc++ and liblightOS++ are installed into the crosscompiler directory
[lightOS.git] / linkerscript / x86_64-c.ld
blobf764783c53c6345aff688b6a2dcd5919cc03bb49
1 ENTRY(_start)
2 OUTPUT_FORMAT("elf64-x86-64")
3 OUTPUT_ARCH(i386:x86-64)
4 VIRTUAL = 0x400000 + SIZEOF_HEADERS;
6 SECTIONS
7         {
8         . = VIRTUAL;
9         .text :
10                 {
11                 __stext__ = .;
12                 *(.text*)
13                 *(.rodata*)
14                 __etext__ = .;
15                 }
16         .data ALIGN(0x1000):
17                 {
18                 __sdata__ = .;
19                 *(.data)
20                 __edata__ = .;
21                 }
22         .bss ALIGN(0x1000):
23                 {
24                 __sbss__ = .;
25                 *(.bss)
26                 __ebss__ = .;
27                 }
28         .rela.dyn ALIGN(0x1000):
29                 {
30                 *(.rela.dyn*)
31                 }
32         .gnu.linkonce ALIGN(0x1000):
33                 {
34                 *(.gnu.linkonce.*)
35                 }
36         /DISCARD/ : { *(.comment .note.GNU-stack) }
37         }