aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.vnet.ibm.com>2018-01-10 12:20:15 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-01-23 07:36:49 +0100
commita5daf0e3eafcf73947e0ac8d9128a610e96d90a4 (patch)
tree286d39f396f32355f60f70edef9ef1ee11885ecb
parents390/sclp: fix .data section specification (diff)
downloadlinux-dev-a5daf0e3eafcf73947e0ac8d9128a610e96d90a4.tar.xz
linux-dev-a5daf0e3eafcf73947e0ac8d9128a610e96d90a4.zip
s390/decompressor: swap .text and .rodata.compressed sections
.rodata.compressed section contains compressed linux image and is quite large. By swapping text and rodata.compressed sections, the decompressor code ends up between 0x11000 and 0x100000 addresses, which makes it easier: - to distinguish the decompressor phase from decompressed code (which lives above 0x100000, except for small startup_continue), - define break points which don't intersect with the main kernel image later. Signed-off-by: Vasily Gorbik <gor@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/boot/compressed/vmlinux.lds.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/boot/compressed/vmlinux.lds.S b/arch/s390/boot/compressed/vmlinux.lds.S
index 88e46d4a7784..0c42535ec696 100644
--- a/arch/s390/boot/compressed/vmlinux.lds.S
+++ b/arch/s390/boot/compressed/vmlinux.lds.S
@@ -17,15 +17,15 @@ SECTIONS
HEAD_TEXT
_ehead = . ;
}
- .rodata.compressed : {
- *(.rodata.compressed)
- }
.text : {
_text = .; /* Text */
*(.text)
*(.text.*)
_etext = . ;
}
+ .rodata.compressed : {
+ *(.rodata.compressed)
+ }
.rodata : {
_rodata = . ;
*(.rodata) /* read-only data */