s390x sframe regressions

Commit 6ab3f09a68 resulted in regressions.
s390x-linux-gnu  FAIL: SFrame simple link
s390x-linux-gnu  FAIL: SFrame for plt0 and pltN

Commit 939eb467b2 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>
(cherry picked from commit 168c017e20)
This commit is contained in:
Alan Modra
2025-07-14 19:08:12 +09:30
parent 153c98d1d5
commit 9d44d46d99

View 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;
}
}