root / Whitix / branches / kernel64 / link.ld

Revision 598, 0.9 kB (checked in by mwhitworth, 5 months ago)

Merge in changes from trunk, add to makefiles, add to x86-64 port.

Line 
1OUTPUT_FORMAT("elf64-x86-64")
2OUTPUT_ARCH("i386:x86-64")
3ENTRY(start)
4
5SECTIONS
6{
7  .text 0x11000 : {
8    code = .; _code = .; __code = .;
9    *(.text)
10    *(.rdata)
11     . = ALIGN(4096);
12  }
13
14  endCode = .;
15
16/*  .data  : {
17    data = .; _data = .; __data = .;
18    *(.data)
19     . = ALIGN(4096);
20  }
21
22  endData = .;
23
24  initcall_start = .; _initcall_start = .;
25  .initcall.init : {
26        *(.initcall1.init)
27        *(.initcall2.init)
28        *(.initcall3.init)
29        *(.initcall4.init)
30  }
31
32  initcall_end = .; _initcall_end = .; */
33
34  symtable_start = .; _symtable_start = .;
35/*  .symtable : {
36        *(.symtable)
37  }*/
38
39  symtable_end = .; _symtable_end = .;
40
41/*  symstrings_start = .; _symstrings_start = .;
42  .symstrings : {
43        *(.symstrings)
44        . = ALIGN(4096);
45  }
46
47  symstrings_end = .; _symstrings_end = .;
48
49  .bss  : {
50   bss = .; _bss = .; __bss = .;
51        *(.bss.page_aligned)
52    *(.bss)
53        *(COMMON)
54        . = ALIGN(4);
55        endbss = .; _endbss = .;
56  } */
57
58  end = .; _end = .; __end = .;
59}
Note: See TracBrowser for help on using the browser.