summaryrefslogtreecommitdiff
path: root/arch/s390/boot/compressed/vmlinux.scr.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/boot/compressed/vmlinux.scr.lds.S')
-rw-r--r--arch/s390/boot/compressed/vmlinux.scr.lds.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/s390/boot/compressed/vmlinux.scr.lds.S b/arch/s390/boot/compressed/vmlinux.scr.lds.S
new file mode 100644
index 000000000000..ff01d18c9222
--- /dev/null
+++ b/arch/s390/boot/compressed/vmlinux.scr.lds.S
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+SECTIONS
+{
+ .rodata.compressed : {
+#ifndef CONFIG_KERNEL_UNCOMPRESSED
+ input_len = .;
+ LONG(input_data_end - input_data) input_data = .;
+#endif
+ *(.data)
+#ifndef CONFIG_KERNEL_UNCOMPRESSED
+ output_len = . - 4;
+ input_data_end = .;
+#endif
+ }
+}