Skip to content

Commit

Permalink
s390/linker skript: discard exit.data at runtime
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Feb 14, 2013
1 parent fa364fc commit a4e6924
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4e6924

Please sign in to comment.