vmlinux-sun3.lds 1.8 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

OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
OUTPUT_ARCH(m68k)
ENTRY(_start)
jiffies = jiffies_64 + 4;
SECTIONS
{
S
Sam Creasey 已提交
12
  . = 0xE002000;
L
Linus Torvalds 已提交
13 14
  _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 23 24 25 26
	*(.fixup)
	*(.gnu.warning)
	} :text = 0x4e75
	RODATA

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

  .data : {			/* Data */
27
	DATA_DATA
L
Linus Torvalds 已提交
28 29 30 31 32 33 34 35
	CONSTRUCTORS
	. = ALIGN(16);		/* Exception table */
	__start___ex_table = .;
	*(__ex_table)
	__stop___ex_table = .;
	} :data
  /* End of data goes *here* so that freeing init code works properly. */
  _edata = .;
A
Al Viro 已提交
36
  NOTES
L
Linus Torvalds 已提交
37 38

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


  .bss : { *(.bss) }		/* BSS */

  _end = . ;

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

  .crap : {
	/* Stabs debugging sections.  */
	*(.stab)
	*(.stabstr)
	*(.stab.excl)
	*(.stab.exclstr)
	*(.stab.index)
	*(.stab.indexstr)
	*(.comment)
	*(.note)
  }

}