vmlinux-std.lds 2.0 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3
/* ld script to make m68k Linux kernel */

#include <asm-generic/vmlinux.lds.h>
4
#include <asm/page.h>
L
Linus Torvalds 已提交
5 6 7 8 9 10 11 12 13 14

OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
OUTPUT_ARCH(m68k)
ENTRY(_start)
jiffies = jiffies_64 + 4;
SECTIONS
{
  . = 0x1000;
  _text = .;			/* Text and read-only data */
  .text : {
A
Al Viro 已提交
15
	*(.text.head)
16
	TEXT_TEXT
L
Linus Torvalds 已提交
17
	SCHED_TEXT
18
	LOCK_TEXT
L
Linus Torvalds 已提交
19 20 21 22
	*(.fixup)
	*(.gnu.warning)
	} :text = 0x4e75

23 24
  _etext = .;			/* End of text section */

L
Linus Torvalds 已提交
25 26 27 28 29 30 31 32
  . = ALIGN(16);		/* Exception table */
  __start___ex_table = .;
  __ex_table : { *(__ex_table) }
  __stop___ex_table = .;

  RODATA

  .data : {			/* Data */
33
	DATA_DATA
L
Linus Torvalds 已提交
34 35 36 37
	CONSTRUCTORS
	}

  . = ALIGN(16);
38 39 40
  .data.cacheline_aligned : { *(.data.cacheline_aligned) }

  .bss : { *(.bss) }		/* BSS */
L
Linus Torvalds 已提交
41 42 43 44

  _edata = .;			/* End of data section */

  /* will be freed after init */
45
  . = ALIGN(PAGE_SIZE);		/* Init code and data */
L
Linus Torvalds 已提交
46 47 48
  __init_begin = .;
  .init.text : {
	_sinittext = .;
49
	INIT_TEXT
L
Linus Torvalds 已提交
50
	_einittext = .;
51
  } :data
52
  .init.data : { INIT_DATA }
L
Linus Torvalds 已提交
53 54 55 56 57 58
  . = ALIGN(16);
  __setup_start = .;
  .init.setup : { *(.init.setup) }
  __setup_end = .;
  __initcall_start = .;
  .initcall.init : {
59
	INITCALLS
L
Linus Torvalds 已提交
60 61 62 63 64
  }
  __initcall_end = .;
  __con_initcall_start = .;
  .con_initcall.init : { *(.con_initcall.init) }
  __con_initcall_end = .;
65 66 67 68 69
  .m68k_fixup : {
	__start_fixup = .;
	*(.m68k_fixup)
	__stop_fixup = .;
  }
L
Linus Torvalds 已提交
70
  SECURITY_INIT
71
#ifdef CONFIG_BLK_DEV_INITRD
L
Linus Torvalds 已提交
72 73 74 75
  . = ALIGN(8192);
  __initramfs_start = .;
  .init.ramfs : { *(.init.ramfs) }
  __initramfs_end = .;
76
#endif
L
Linus Torvalds 已提交
77 78 79 80 81 82 83 84 85
  . = ALIGN(8192);
  __init_end = .;

  .data.init_task : { *(.data.init_task) }	/* The initial task and kernel stack */

  _end = . ;

  /* Sections to be discarded */
  /DISCARD/ : {
86 87
	EXIT_TEXT
	EXIT_DATA
L
Linus Torvalds 已提交
88 89 90 91 92 93 94 95 96 97 98 99
	*(.exitcall.exit)
	}

  /* 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) }
}