Commit 3240a77b authored by Geoffrey Thomas's avatar Geoffrey Thomas Committed by Linus Torvalds

sparc: Clean up linker script using new linker script macros.

Signed-off-by: default avatarGeoffrey Thomas <geofft@ksplice.com>
Signed-off-by: default avatarTim Abbott <tabbott@ksplice.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9c88b25b
...@@ -51,70 +51,27 @@ SECTIONS ...@@ -51,70 +51,27 @@ SECTIONS
_etext = .; _etext = .;
RO_DATA(PAGE_SIZE) RO_DATA(PAGE_SIZE)
.data : {
DATA_DATA
CONSTRUCTORS
}
.data1 : { .data1 : {
*(.data1) *(.data1)
} }
. = ALIGN(SMP_CACHE_BYTES); RW_DATA_SECTION(SMP_CACHE_BYTES, 0, THREAD_SIZE)
.data.cacheline_aligned : {
*(.data.cacheline_aligned)
}
. = ALIGN(SMP_CACHE_BYTES);
.data.read_mostly : {
*(.data.read_mostly)
}
/* End of data section */ /* End of data section */
_edata = .; _edata = .;
/* init_task */
. = ALIGN(THREAD_SIZE);
.data.init_task : {
*(.data.init_task)
}
.fixup : { .fixup : {
__start___fixup = .; __start___fixup = .;
*(.fixup) *(.fixup)
__stop___fixup = .; __stop___fixup = .;
} }
. = ALIGN(16); EXCEPTION_TABLE(16)
__ex_table : {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
}
NOTES NOTES
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);
.init.text : { __init_begin = ALIGN(PAGE_SIZE);
__init_begin = .; INIT_TEXT_SECTION(PAGE_SIZE)
_sinittext = .;
INIT_TEXT
_einittext = .;
}
__init_text_end = .; __init_text_end = .;
.init.data : { INIT_DATA_SECTION(16)
INIT_DATA
}
. = 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
. = ALIGN(4); . = ALIGN(4);
.tsb_ldquad_phys_patch : { .tsb_ldquad_phys_patch : {
...@@ -146,29 +103,11 @@ SECTIONS ...@@ -146,29 +103,11 @@ SECTIONS
__sun4v_2insn_patch_end = .; __sun4v_2insn_patch_end = .;
} }
#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(PAGE_SIZE);
.init.ramfs : {
__initramfs_start = .;
*(.init.ramfs)
__initramfs_end = .;
}
#endif
PERCPU(PAGE_SIZE) PERCPU(PAGE_SIZE)
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);
__init_end = .; __init_end = .;
__bss_start = .; BSS_SECTION(0, 0, 0)
.sbss : {
*(.sbss)
*(.scommon)
}
.bss : {
*(.dynbss)
*(.bss)
*(COMMON)
}
_end = . ; _end = . ;
STABS_DEBUG STABS_DEBUG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment