s390/linker skript: discard exit.data at runtime
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 11 Feb 2013 13:26:24 +0000 (14:26 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:21 +0000 (15:55 +0100)
Discard exit.data section at run time, not link time, since exit.text
references exit.data and causes this build error:

`.exit.data' referenced in section `.exit.text' of drivers/built-in.o:
 defined in discarded section `.exit.data' of drivers/built-in.o

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/vmlinux.lds.S

index 79cb51adc7419b52245d444c74e2c9378eaf99ab..35b13ed0af5fa24f2f36fb41040a9f2c08b5c144 100644 (file)
@@ -75,6 +75,10 @@ SECTIONS
                EXIT_TEXT
        }
 
+       .exit.data : {
+               EXIT_DATA
+       }
+
        /* early.c uses stsi, which requires page aligned data. */
        . = ALIGN(PAGE_SIZE);
        INIT_DATA_SECTION(0x100)