From 53d8d3f0c19e1365fdbb78c5824fe1d7e3d13aa0 Mon Sep 17 00:00:00 2001 From: Indu Bhagat Date: Thu, 2 Feb 2023 00:49:29 -0800 Subject: bfd: use "stack trace" instead of "unwind" for SFrame SFrame format is meant for generating stack traces only. bfd/ * elf-bfd.h: Replace the use of "unwind" with "stack trace". * elf-sframe.c: Likewise. * elf64-x86-64.c: Likewise. * elfxx-x86.c: Likewise. include/ * elf/common.h: Likewise. --- bfd/elf-sframe.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bfd/elf-sframe.c') diff --git a/bfd/elf-sframe.c b/bfd/elf-sframe.c index 8a7fd02..d2954ba 100644 --- a/bfd/elf-sframe.c +++ b/bfd/elf-sframe.c @@ -206,7 +206,7 @@ _bfd_elf_parse_sframe (bfd *abfd, return false; } - /* Read the SFrame unwind information from abfd. */ + /* Read the SFrame stack trace information from abfd. */ if (!bfd_malloc_and_get_section (abfd, sec, &sfbuf)) goto fail_no_free; @@ -438,10 +438,11 @@ _bfd_elf_merge_section_sframe (bfd *abfd, } else { - /* Expected to land here for SFrame unwind info as created - for the .plt* sections. These sections can have upto two - FDE entries. Although the code should work for > 2, - leaving this assert here for safety. */ + /* Expected to land here when SFrame stack trace info is + created dynamically for the .plt* sections. These + sections are expected to have upto two SFrame FDE entries. + Although the code should work for > 2, leaving this + assert here for safety. */ BFD_ASSERT (num_fidx <= 2); /* For the first entry, we know the offset of the SFrame FDE's sfde_func_start_address. Side note: see how the value -- cgit v1.1