mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: pad stage3 binary
The stage 3 loader size has to be a multiple of the filesystem blocksize so that the signature maps with the later in memory stage 3 loader. The lowest common blocksize is 4k so the image is padded to a 4k boundary. Signed-off-by: Stefan Haberland <sth@linux.ibm.com> Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
58a7462f65
commit
75d4317f20
@@ -77,6 +77,22 @@ stage3.exec: head.o stage3.o kdump3.o libc.o sclp.o sclp_stage3.o \
|
||||
--only-section=.fixup \
|
||||
$< $@
|
||||
|
||||
stage3.bin: stage3.exec
|
||||
$(OBJCOPY) -O binary \
|
||||
--only-section=.stage2.head \
|
||||
--only-section=.text.dummy \
|
||||
--only-section=.text.start \
|
||||
--only-section=.text \
|
||||
--only-section=.ex_table \
|
||||
--only-section=.data \
|
||||
--only-section=.rodata.str1.2 \
|
||||
--only-section=.rodata \
|
||||
--only-section=.stage2dump.tail \
|
||||
--only-section=.eckd2dump_mv.tail \
|
||||
--only-section=.fixup \
|
||||
--pad-to=0xf000 \
|
||||
$< $@
|
||||
|
||||
data.o: $(FILES)
|
||||
$(LD) $(NO_PIE_LDFLAGS) -r -b binary -o data.o $(FILES)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user