Commit 88cac29f authored by Nicolas Pitre's avatar Nicolas Pitre

ARM: vmlinux*.lds.S: some decruftification

Remove stuff from vmlinux.lds.S that is relevant only to the XIP build,
and stuff from vmlinux-xip.lds.S related to self-modifying code that
makes no sense in the XIP case.
Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
Reviewed-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: default avatarChris Brandt <Chris.Brandt@renesas.com>
parent 9520b1a1
...@@ -77,9 +77,7 @@ SECTIONS ...@@ -77,9 +77,7 @@ SECTIONS
*(.text.fixup) *(.text.fixup)
*(__ex_table) *(__ex_table)
#endif #endif
#ifndef CONFIG_SMP_ON_UP
*(.alt.smp.init) *(.alt.smp.init)
#endif
*(.discard) *(.discard)
*(.discard.*) *(.discard.*)
} }
...@@ -181,18 +179,6 @@ SECTIONS ...@@ -181,18 +179,6 @@ SECTIONS
*(.taglist.init) *(.taglist.init)
__tagtable_end = .; __tagtable_end = .;
} }
#ifdef CONFIG_SMP_ON_UP
.init.smpalt : {
__smpalt_begin = .;
*(.alt.smp.init)
__smpalt_end = .;
}
#endif
.init.pv_table : {
__pv_table_begin = .;
*(.pv_table)
__pv_table_end = .;
}
.init.data : { .init.data : {
INIT_SETUP(16) INIT_SETUP(16)
INIT_CALLS INIT_CALLS
......
...@@ -236,9 +236,8 @@ SECTIONS ...@@ -236,9 +236,8 @@ SECTIONS
. = ALIGN(THREAD_SIZE); . = ALIGN(THREAD_SIZE);
#endif #endif
__init_end = .; __init_end = .;
__data_loc = .;
.data : AT(__data_loc) { .data : {
_data = .; /* address in memory */ _data = .; /* address in memory */
_sdata = .; _sdata = .;
...@@ -260,7 +259,6 @@ SECTIONS ...@@ -260,7 +259,6 @@ SECTIONS
_edata = .; _edata = .;
} }
_edata_loc = __data_loc + SIZEOF(.data);
BUG_TABLE BUG_TABLE
......
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