public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] s390: Generate .eh_frame unwind information for .plt section
@ 2025-01-22 14:10 Jens Remus
  2025-01-22 14:10 ` [PATCH 1/3] s390: Fix linker s390 emulation option parsing Jens Remus
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jens Remus @ 2025-01-22 14:10 UTC (permalink / raw)
  To: binutils, Andreas Krebbel; +Cc: Jens Remus, Andreas Arnez

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

-- 
2.45.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-27 15:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-22 14:10 [PATCH 0/3] s390: Generate .eh_frame unwind information for .plt section Jens Remus
2025-01-22 14:10 ` [PATCH 1/3] s390: Fix linker s390 emulation option parsing Jens Remus
2025-01-22 14:10 ` [PATCH 2/3] s390: Add basic PLT generation tests Jens Remus
2025-01-22 14:10 ` [PATCH 3/3] s390: Generate .eh_frame unwind information for .plt section Jens Remus
2025-01-27  9:12 ` [PATCH 0/3] " Andreas Krebbel
2025-01-27 15:48   ` Jens Remus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).