From 2e6cf81c2ad1a08b6bf9cffd63b0de06a09c64c0 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Mon, 31 Jan 2022 17:53:01 +0000 Subject: [PATCH] zipl/boot: stage3.lds.S: put notes section explicitly at the end MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...otherwise `.note.gnu.build-id` will be put at 0x0 (location for s390x lowcore) if the linker option `--build-id` is used (which is the default if gcc is used for linking). Signed-off-by: Marc Hartmayer Reviewed-by: Steffen Eiden Reviewed-by: Stefan Haberland Signed-off-by: Jan Höppner --- zipl/boot/stage3.lds.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zipl/boot/stage3.lds.S b/zipl/boot/stage3.lds.S index 2362d4f5..fa4c81f7 100644 --- a/zipl/boot/stage3.lds.S +++ b/zipl/boot/stage3.lds.S @@ -59,4 +59,10 @@ SECTIONS "Stack section doesn't conform to the described memory layout"); } __stack_end = .; + + /* List this explicitly as otherwise .note.gnu.build-id will be + * put at 0x0 */ + .notes : { + *(.note.*) + } }