2005-04-17 06:20:36 +08:00
|
|
|
/* ld script to make SparcLinux kernel */
|
|
|
|
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
2007-09-18 10:02:30 +08:00
|
|
|
#include <asm/page.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-sparc", "elf32-sparc", "elf32-sparc")
|
|
|
|
OUTPUT_ARCH(sparc)
|
|
|
|
ENTRY(_start)
|
|
|
|
jiffies = jiffies_64 + 4;
|
|
|
|
SECTIONS
|
|
|
|
{
|
2007-09-18 10:02:30 +08:00
|
|
|
. = 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 = .);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-09-18 10:02:30 +08:00
|
|
|
.fixup : {
|
|
|
|
__start___fixup = .;
|
|
|
|
*(.fixup)
|
|
|
|
__stop___fixup = .;
|
|
|
|
}
|
|
|
|
__ex_table : {
|
|
|
|
__start___ex_table = .;
|
|
|
|
*(__ex_table)
|
|
|
|
__stop___ex_table = .;
|
|
|
|
}
|
2007-07-23 10:19:05 +08:00
|
|
|
|
2007-09-18 10:02:30 +08:00
|
|
|
NOTES
|
|
|
|
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
|
|
__init_begin = .;
|
|
|
|
.init.text : {
|
|
|
|
_sinittext = .;
|
2008-01-20 21:15:03 +08:00
|
|
|
INIT_TEXT
|
2007-09-18 10:02:30 +08:00
|
|
|
_einittext = .;
|
|
|
|
}
|
|
|
|
__init_text_end = .;
|
|
|
|
.init.data : {
|
2008-01-20 21:15:03 +08:00
|
|
|
INIT_DATA
|
2007-09-18 10:02:30 +08:00
|
|
|
}
|
|
|
|
. = 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
|
2007-02-10 17:44:44 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
2007-09-18 10:02:30 +08:00
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
|
|
.init.ramfs : {
|
|
|
|
__initramfs_start = .;
|
|
|
|
*(.init.ramfs)
|
|
|
|
__initramfs_end = .;
|
|
|
|
}
|
2007-02-10 17:44:44 +08:00
|
|
|
#endif
|
|
|
|
|
2007-09-18 10:02:30 +08:00
|
|
|
PERCPU(PAGE_SIZE)
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
|
|
__init_end = .;
|
|
|
|
. = ALIGN(32);
|
|
|
|
.data.cacheline_aligned : {
|
|
|
|
*(.data.cacheline_aligned)
|
|
|
|
}
|
2007-11-16 19:06:07 +08:00
|
|
|
. = ALIGN(32);
|
|
|
|
.data.read_mostly : {
|
|
|
|
*(.data.read_mostly)
|
|
|
|
}
|
2005-12-29 05:22:54 +08:00
|
|
|
|
2007-09-18 10:02:30 +08:00
|
|
|
__bss_start = .;
|
|
|
|
.sbss : {
|
|
|
|
*(.sbss)
|
|
|
|
*(.scommon) }
|
|
|
|
.bss : {
|
|
|
|
*(.dynbss)
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
}
|
|
|
|
_end = . ;
|
|
|
|
PROVIDE (end = .);
|
|
|
|
/DISCARD/ : {
|
2008-01-20 21:15:03 +08:00
|
|
|
EXIT_TEXT
|
|
|
|
EXIT_DATA
|
2007-09-18 10:02:30 +08:00
|
|
|
*(.exitcall.exit)
|
|
|
|
}
|
2005-12-29 05:22:54 +08:00
|
|
|
|
2007-09-18 10:02:30 +08:00
|
|
|
STABS_DEBUG
|
|
|
|
DWARF_DEBUG
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|