mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/boot: Add assertion of the dumper size to the linker script
Update eckd2dump linker script with assertions of single-volume and multi-volume DASD dumper size. Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
73f211ecb1
commit
d1884db236
@@ -30,6 +30,7 @@ SECTIONS
|
||||
__stage2_desc = .;
|
||||
|
||||
. = STAGE2_LOAD_ADDRESS;
|
||||
__stage2_head = .;
|
||||
.stage2.head : { *(.stage2.head) }
|
||||
. = STAGE2_ENTRY;
|
||||
.text.start : {
|
||||
@@ -43,7 +44,16 @@ SECTIONS
|
||||
.data : { *(.data) }
|
||||
|
||||
. = STAGE2DUMP_TAIL_ADDRESS;
|
||||
.stage2dump.tail : { *(.stage2dump.tail) }
|
||||
.stage2dump.tail : { *(.stage2dump.tail)
|
||||
#ifdef ECKD2DUMP_MV
|
||||
ASSERT(__stage2dump_tail_end - __stage2_head == STAGE2_DUMPER_SIZE_MV,
|
||||
"MV dumper size doesn't conform to the described memory layout");
|
||||
#else
|
||||
ASSERT(__stage2dump_tail_end - __stage2_head == STAGE2_DUMPER_SIZE_ZLIB,
|
||||
"SV dumper size doesn't conform to the described memory layout");
|
||||
#endif
|
||||
}
|
||||
__stage2dump_tail_end = .;
|
||||
#ifdef ECKD2DUMP_MV
|
||||
. = ECKD2DUMP_MV_TAIL_ADDRESS;
|
||||
.eckd2dump_mv.tail : { *(.eckd2dump_mv.tail) }
|
||||
|
||||
Reference in New Issue
Block a user