]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s390x sframe regressions
authorAlan Modra <amodra@gmail.com>
Mon, 14 Jul 2025 09:38:12 +0000 (19:08 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 14 Jul 2025 10:55:08 +0000 (20:25 +0930)
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 <jremus@linux.ibm.com>
bfd/elf64-s390.c

index d801848df4ad649f3a57a761c217eeef235931d7..a79cc476572d9c6fa05a89d8fef90d7becaf3e06 100644 (file)
@@ -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;
        }
     }