s390/decompressor: discard __ex_table section
authorVasily Gorbik <gor@linux.vnet.ibm.com>
Tue, 20 Feb 2018 10:12:30 +0000 (11:12 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 27 Feb 2018 07:05:21 +0000 (08:05 +0100)
Exception table (__ex_table section) is not used during the decompressor
phase and could be discarded to save the memory. It is currently
generated due to sclp_service_call function (sclp_early_core.c). An
assumption is that decompressor usage of sclp_service_call via
sclp_early_printk should never trigger exceptions.

Signed-off-by: Vasily Gorbik <gor@linux.vnet.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/compressed/vmlinux.lds.S

index 8150132..d43c2db 100644 (file)
@@ -52,6 +52,7 @@ SECTIONS
        /* Sections to be discarded */
        /DISCARD/ : {
                *(.eh_frame)
+               *(__ex_table)
                *(*__ksymtab*)
        }
 }