From 168c017e206894effdefa919bff29880165fae13 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 14 Jul 2025 19:08:12 +0930 Subject: [PATCH] s390x sframe regressions Commit 6ab3f09a682a resulted in regressions. s390x-linux-gnu FAIL: SFrame simple link s390x-linux-gnu FAIL: SFrame for plt0 and pltN Commit 939eb467b21d exposed the problem further. s390x-linux-gnu FAIL: LTO 4a s390x-linux-gnu FAIL: LTO 4c s390x-linux-gnu FAIL: LTO 4d * elf64-s390.c (elf_s390_create_dynamic_sections): Set plt_sframe ELF section type. Reviewed-by: Jens Remus --- bfd/elf64-s390.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index d801848df4a..a79cc476572 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -4299,6 +4299,8 @@ elf_s390_create_dynamic_sections (bfd *dynobj, flags); if (htab->plt_sframe == NULL) return false; + + elf_section_type (htab->plt_sframe) = SHT_GNU_SFRAME; } } -- 2.47.2