vmlinux.lds.S 1.2 KB
Newer Older
L
Linus Torvalds 已提交
1
#include <asm-generic/vmlinux.lds.h>
2
#include <asm/thread_info.h>
S
Sam Ravnborg 已提交
3
#include <asm/page.h>
L
Linus Torvalds 已提交
4 5 6 7

OUTPUT_FORMAT("elf64-alpha")
OUTPUT_ARCH(alpha)
ENTRY(__start)
8
PHDRS { kernel PT_LOAD; note PT_NOTE; }
L
Linus Torvalds 已提交
9 10 11 12
jiffies = jiffies_64;
SECTIONS
{
#ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
S
Sam Ravnborg 已提交
13
	. = 0xfffffc0000310000;
L
Linus Torvalds 已提交
14
#else
S
Sam Ravnborg 已提交
15
	. = 0xfffffc0001010000;
L
Linus Torvalds 已提交
16 17
#endif

S
Sam Ravnborg 已提交
18 19
	_text = .;	/* Text and read-only data */
	.text : {
20
		HEAD_TEXT
S
Sam Ravnborg 已提交
21 22 23 24 25 26 27 28
		TEXT_TEXT
		SCHED_TEXT
		LOCK_TEXT
		*(.fixup)
		*(.gnu.warning)
	} :kernel
	_etext = .;	/* End of text section */

29 30 31 32 33 34
	NOTES :kernel :note
	.dummy : {
		*(.dummy)
	} :kernel

	RODATA
35
	EXCEPTION_TABLE(16)
S
Sam Ravnborg 已提交
36 37

	/* Will be freed after init */
38 39 40
	__init_begin = ALIGN(PAGE_SIZE);
	INIT_TEXT_SECTION(PAGE_SIZE)
	INIT_DATA_SECTION(16)
41
	PERCPU(64, PAGE_SIZE)
42 43 44
	/* Align to THREAD_SIZE rather than PAGE_SIZE here so any padding page
	   needed for the THREAD_SIZE aligned init_task gets freed after init */
	. = ALIGN(THREAD_SIZE);
S
Sam Ravnborg 已提交
45 46 47 48
	__init_end = .;
	/* Freed after init ends here */

	_data = .;
49
	RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE)
S
Sam Ravnborg 已提交
50 51 52 53 54 55 56 57 58

	.got : {
		*(.got)
	}
	.sdata : {
		*(.sdata)
	}
	_edata = .;	/* End of data section */

59
	BSS_SECTION(0, 0, 0)
S
Sam Ravnborg 已提交
60 61 62 63 64 65 66 67 68 69 70
	_end = .;

	.mdebug 0 : {
		*(.mdebug)
	}
	.note 0 : {
		*(.note)
	}

	STABS_DEBUG
	DWARF_DEBUG
71 72

	DISCARDS
L
Linus Torvalds 已提交
73
}