Files
s390-tools/zipl/boot
Vasily Gorbik 50f909db8f zipl/boot: Fix stage3 secure boot trailer placement
The stage3 linker script places .sb.trailer so that it must end at
COMMAND_LINE_EXTRA. The current script derives the start address from
SIZEOF(.sb.trailer) before the section is emitted:

  . = COMMAND_LINE_EXTRA - SIZEOF(.sb.trailer);

With binutils older than 2.39 before commit 648f6099d4dc ("-z relro
relaxation and ld script SIZEOF") this can result in .sb.trailer being
placed at COMMAND_LINE_EXTRA instead, moving the trailer into the
following area and breaking the expected layout.

The trailer has a fixed size, so use an explicit constant for the
placement calculation and keep the ASSERT to verify the final section
size. This makes the placement deterministic again.

Fixes: a1126352ec ("zipl/boot: Improve linker scripts")
Reviewed-by: Marc Hartmayer <marc@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-04-10 11:21:23 +02:00
..
2025-11-07 14:34:48 +01:00
2026-01-19 13:01:01 +01:00
2017-08-21 10:55:40 +02:00
2017-08-21 10:55:40 +02:00
2025-11-07 14:34:48 +01:00
2017-08-21 10:55:40 +02:00
2017-08-21 10:55:40 +02:00
2025-09-15 11:47:32 +02:00
2025-11-07 14:34:48 +01:00
2026-01-19 13:01:01 +01:00
2025-10-14 09:57:06 +02:00
2025-11-07 14:34:48 +01:00
2020-05-06 17:36:39 +02:00
2025-11-07 14:34:48 +01:00
2025-11-07 14:34:48 +01:00
2025-11-07 14:34:48 +01:00