Blame view

arch/m32r/kernel/vmlinux.lds.S 1.55 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  /* ld script to make M32R Linux kernel
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
4
5
  #include <asm-generic/vmlinux.lds.h>
  #include <asm/addrspace.h>
  #include <asm/page.h>
85233c43f   Tim Abbott   m32r: Cleanup lin...
6
  #include <asm/thread_info.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
  
  OUTPUT_ARCH(m32r)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
10
11
12
13
  #if defined(__LITTLE_ENDIAN__)
         jiffies = jiffies_64;
  #else
         jiffies = jiffies_64 + 4;
  #endif
3d60f8493   Hirokazu Takata   [PATCH] m32r: fix...
14
15
16
  
  kernel_entry = boot - 0x80000000;
  ENTRY(kernel_entry)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17
18
19
20
21
22
23
24
25
26
27
28
  SECTIONS
  {
    . = CONFIG_MEMORY_START + __PAGE_OFFSET;
    eit_vector = .;
  
    . = . + 0x1000;
    .empty_zero_page : { *(.empty_zero_page) } = 0
  
    /* read-only */
    _text = .;			/* Text and read-only data */
    .boot : { *(.boot) } = 0
    .text : {
349636966   Tim Abbott   m32r: convert to ...
29
  	HEAD_TEXT
7664709b4   Sam Ravnborg   all-archs: consol...
30
  	TEXT_TEXT
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
31
32
33
34
35
36
37
38
39
40
  	SCHED_TEXT
  	LOCK_TEXT
  	*(.fixup)
  	*(.gnu.warning)
  	} = 0x9090
  #ifdef CONFIG_SMP
    . = ALIGN(65536);
    .eit_vector4 : { *(.eit_vector4) }
  #endif
    _etext = .;			/* End of text section */
85233c43f   Tim Abbott   m32r: Cleanup lin...
41
    EXCEPTION_TABLE(16)
e968b8d40   Hirokazu Takata   m32r: add NOTES t...
42
    NOTES
a2d063ac2   Steven Rostedt   extable, core_ker...
43
    _sdata = .;			/* Start of data section */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
44
    RODATA
85233c43f   Tim Abbott   m32r: Cleanup lin...
45
    RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
46
    _edata = .;			/* End of data section */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
47
    /* will be freed after init */
85233c43f   Tim Abbott   m32r: Cleanup lin...
48
    . = ALIGN(PAGE_SIZE);		/* Init code and data */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
49
    __init_begin = .;
85233c43f   Tim Abbott   m32r: Cleanup lin...
50
51
    INIT_TEXT_SECTION(PAGE_SIZE)
    INIT_DATA_SECTION(16)
0415b00d1   Tejun Heo   percpu: Always al...
52
    PERCPU_SECTION(32)
85233c43f   Tim Abbott   m32r: Cleanup lin...
53
    . = ALIGN(PAGE_SIZE);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
54
55
    __init_end = .;
    /* freed after init ends here */
85233c43f   Tim Abbott   m32r: Cleanup lin...
56
    BSS_SECTION(0, 0, 4)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
57
58
  
    _end = . ;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
59
60
61
62
63
64
65
66
    /* Stabs debugging sections.  */
    .stab 0 : { *(.stab) }
    .stabstr 0 : { *(.stabstr) }
    .stab.excl 0 : { *(.stab.excl) }
    .stab.exclstr 0 : { *(.stab.exclstr) }
    .stab.index 0 : { *(.stab.index) }
    .stab.indexstr 0 : { *(.stab.indexstr) }
    .comment 0 : { *(.comment) }
023bf6f1b   Tejun Heo   linker script: un...
67
68
69
  
    /* Sections to be discarded */
    DISCARDS
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
70
  }