[PATCH 0/3] s390: Generate .eh_frame unwind information for .plt section
Andreas Krebbel
krebbel@linux.ibm.com
Mon Jan 27 09:12:31 GMT 2025
Hi Jens,
Patches are ok. Thank you very much!
Andreas
On 1/22/25 3:10 PM, Jens Remus wrote:
> This enables the linker on s390x to generate .eh_frame unwind
> information for the .plt section. Based on x86-64. This enables
> e.g. perf to unwind through PLT entries. Furthermore this lays the
> foundation to generate SFrame stack trace information in the future.
>
> Patch 1 resolves an issue in the linker s390 emulation option parsing.
> This is a prerequisite to add support for linker option
> "--[no-]ld-generated-unwind-info" in patch 3.
>
> Patch 2 adds basic PLT generation tests that are extended in patch 3.
>
> Patch 3 adds support for linker option
> "--[no-]ld-generated-unwind-info" and enables the linker to generate
> .eh_frame for .plt by default.
>
> Regards,
> Jens
>
> Jens Remus (3):
> s390: Fix linker s390 emulation option parsing
> s390: Add basic PLT generation tests
> s390: Generate .eh_frame unwind information for .plt section
>
> bfd/elf64-s390.c | 126 ++++++++++++++++++++++-
> ld/NEWS | 6 ++
> ld/emulparams/elf64_s390.sh | 1 +
> ld/emultempl/s390.em | 6 +-
> ld/testsuite/ld-s390/plt_31-1.s | 40 +++++++
> ld/testsuite/ld-s390/plt_31-1.wf | 32 ++++++
> ld/testsuite/ld-s390/plt_31_non-pic-1.pd | 54 ++++++++++
> ld/testsuite/ld-s390/plt_31_pic-1.pd | 57 ++++++++++
> ld/testsuite/ld-s390/plt_64-1.pd | 38 +++++++
> ld/testsuite/ld-s390/plt_64-1.s | 26 +++++
> ld/testsuite/ld-s390/plt_64-1.wf | 33 ++++++
> ld/testsuite/ld-s390/plt_64-1_eh.wf | 31 ++++++
> ld/testsuite/ld-s390/pltlib.s | 16 +++
> ld/testsuite/ld-s390/s390.exp | 28 ++++-
> 14 files changed, 488 insertions(+), 6 deletions(-)
> create mode 100644 ld/testsuite/ld-s390/plt_31-1.s
> create mode 100644 ld/testsuite/ld-s390/plt_31-1.wf
> create mode 100644 ld/testsuite/ld-s390/plt_31_non-pic-1.pd
> create mode 100644 ld/testsuite/ld-s390/plt_31_pic-1.pd
> create mode 100644 ld/testsuite/ld-s390/plt_64-1.pd
> create mode 100644 ld/testsuite/ld-s390/plt_64-1.s
> create mode 100644 ld/testsuite/ld-s390/plt_64-1.wf
> create mode 100644 ld/testsuite/ld-s390/plt_64-1_eh.wf
> create mode 100644 ld/testsuite/ld-s390/pltlib.s
>
More information about the Binutils
mailing list