]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390: Add .noinstr.text to boot and purgatory linker scripts
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 9 Jun 2026 10:33:36 +0000 (12:33 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 10 Jun 2026 14:55:20 +0000 (16:55 +0200)
Upcoming changes will result in a .noinstr.text section within the
boot and purgatory string.o binary. Explicitly add the new section to
avoid orphaned warnings from the linker.

Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/boot/vmlinux.lds.S
arch/s390/purgatory/purgatory.lds.S

index 070bc18babd0ea6c2c4bbd370440a62c432cc99b..d44964592541e52bf962cd5645d97ab4115e357a 100644 (file)
@@ -31,6 +31,7 @@ SECTIONS
                _text = .;      /* Text */
                *(.text)
                *(.text.*)
+               *(.noinstr.text)
                INIT_TEXT
                _etext = . ;
        }
index 482eb4fbcef190d7c97ee7f20e7ae905de79dc3f..387d0db4085f5a683dce9211d054ae8356bffeab 100644 (file)
@@ -19,6 +19,7 @@ SECTIONS
                _text = .;      /* Text */
                *(.text)
                *(.text.*)
+               *(.noinstr.text)
                _etext = . ;
        }
        .rodata : {