vmlinux.lds.S 1.6 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3
/* ld script to make SparcLinux kernel */

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

OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
OUTPUT_ARCH(sparc)
ENTRY(_start)
jiffies = jiffies_64 + 4;
SECTIONS
{
S
Sam Ravnborg 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
	. = 0x10000 + SIZEOF_HEADERS;
	.text 0xf0004000 :
	{
		_text = .;
		TEXT_TEXT
		SCHED_TEXT
		LOCK_TEXT
		*(.gnu.warning)
	} = 0
	_etext = .;
	PROVIDE (etext = .);
	RODATA
	.data :	{
		DATA_DATA
		CONSTRUCTORS
	}
	.data1 : {
		*(.data1)
	}
	_edata = .;
	PROVIDE (edata = .);
L
Linus Torvalds 已提交
33

S
Sam Ravnborg 已提交
34 35 36 37 38 39 40 41 42 43
	.fixup : {
		__start___fixup = .;
		*(.fixup)
		__stop___fixup = .;
	}
	__ex_table : {
		__start___ex_table = .;
		*(__ex_table)
		__stop___ex_table = .;
	}
44

S
Sam Ravnborg 已提交
45 46 47 48 49 50
	NOTES

	. = ALIGN(PAGE_SIZE);
	__init_begin = .;
	.init.text : {
		_sinittext = .;
51
		INIT_TEXT
S
Sam Ravnborg 已提交
52 53 54 55
		_einittext = .;
	}
	__init_text_end = .;
	.init.data : {
56
		INIT_DATA
S
Sam Ravnborg 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
	}
	. = ALIGN(16);
	.init.setup : {
		__setup_start = .;
		*(.init.setup)
		__setup_end = .;
	}
	.initcall.init : {
		__initcall_start = .;
		INITCALLS
	__initcall_end = .;
	}
	.con_initcall.init : {
		__con_initcall_start = .;
		*(.con_initcall.init)
		__con_initcall_end = .;
	}
	SECURITY_INIT
75 76

#ifdef CONFIG_BLK_DEV_INITRD
S
Sam Ravnborg 已提交
77 78 79 80 81 82
	. = ALIGN(PAGE_SIZE);
	.init.ramfs : {
	__initramfs_start = .;
		*(.init.ramfs)
	__initramfs_end = .;
	}
83 84
#endif

S
Sam Ravnborg 已提交
85 86 87 88 89 90 91
	PERCPU(PAGE_SIZE)
	. = ALIGN(PAGE_SIZE);
	__init_end = .;
	. = ALIGN(32);
	.data.cacheline_aligned : {
		*(.data.cacheline_aligned)
	}
92

S
Sam Ravnborg 已提交
93 94 95 96 97 98 99 100 101 102 103 104
	__bss_start = .;
	.sbss : {
		*(.sbss)
		*(.scommon) }
	.bss : {
		*(.dynbss)
		*(.bss)
		*(COMMON)
	}
	_end = . ;
	PROVIDE (end = .);
	/DISCARD/ : {
105 106
		EXIT_TEXT
		EXIT_DATA
S
Sam Ravnborg 已提交
107 108
		*(.exitcall.exit)
	}
109

S
Sam Ravnborg 已提交
110 111
	STABS_DEBUG
	DWARF_DEBUG
L
Linus Torvalds 已提交
112
}