Skip to content

Commit

Permalink
ARM: vmlinux*.lds.S: some decruftification
Browse files Browse the repository at this point in the history
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: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Chris Brandt <Chris.Brandt@renesas.com>
  • Loading branch information
Nicolas Pitre committed Sep 10, 2017
1 parent 9520b1a commit 88cac29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
14 changes: 0 additions & 14 deletions arch/arm/kernel/vmlinux-xip.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ SECTIONS
*(.text.fixup)
*(__ex_table)
#endif
#ifndef CONFIG_SMP_ON_UP
*(.alt.smp.init)
#endif
*(.discard)
*(.discard.*)
}
Expand Down Expand Up @@ -181,18 +179,6 @@ SECTIONS
*(.taglist.init)
__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_SETUP(16)
INIT_CALLS
Expand Down
4 changes: 1 addition & 3 deletions arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,8 @@ SECTIONS
. = ALIGN(THREAD_SIZE);
#endif
__init_end = .;
__data_loc = .;

.data : AT(__data_loc) {
.data : {
_data = .; /* address in memory */
_sdata = .;

Expand All @@ -260,7 +259,6 @@ SECTIONS

_edata = .;
}
_edata_loc = __data_loc + SIZEOF(.data);

BUG_TABLE

Expand Down

0 comments on commit 88cac29

Please sign in to comment.