binutils-gdb/libsframe
Indu Bhagat 6150c6c061 [SFrame-V3] libsframe: testsuite: add a new test for SFrame V2
The existing frecnt-2.c testcase reads the SFrame section from the
provided DATA2 buffer.  It exercises the sframe_decode (),
sframe_decoder_get_num_fidx (), and sframe_decoder_get_funcdesc_v2 ()
APIs.  Currently DATA2 file is the SFrame section created from the test
input (mentioned in the comments in the file) in SFrame version 2
format.

Moving forward, creating SFrame V2 section via GNU assembler and GNU ld
will not be supported.  But textual dump of SFrame V2 sections via
readelf/objdump will need to be supported.  Add a test similar to
frecnt-2.c using SFrame version 2 binary data to the libsframe
testsuite.  Such a test will help ensure that sframe_decode () and
related APIs remain tested for multiple supported arches till the
support for dumping V2 sections is to be maintained.

Duplicate frecnt-2.c to create a frecnt-v2.c, the latter will test with
a SFrame V2 input section always.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>

libsframe/
	* Makefile.in: Regenerated.
libsframe/testsuite/
	* libsframe.decode/decode.exp: Add new test.
	* libsframe.decode/local.mk: Likewise
	* libsframe.decode/DATA-V2: New SFrame V2 test data file.
	* libsframe.decode/frecnt-v2.c: New test.
2026-01-15 17:02:23 -08:00
..
doc Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
testsuite [SFrame-V3] libsframe: testsuite: add a new test for SFrame V2 2026-01-15 17:02:23 -08:00
aclocal.m4 Binutils: Add clang LTO support to AR and RANLIB 2025-09-25 12:30:13 +08:00
config.h.in
configure tidy m4 plugin config support 2025-11-03 10:59:50 +10:30
configure.ac Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
libsframe.ver libsframe: refactor sframe_decoder_add_funcdesc for internal use 2025-12-24 00:51:43 -08:00
libtool-version libsframe: bump version to 2.0 2025-07-12 01:09:17 -07:00
Makefile.am Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
Makefile.in [SFrame-V3] libsframe: testsuite: add a new test for SFrame V2 2026-01-15 17:02:23 -08:00
README libsframe: add README and mention expectations 2026-01-05 11:53:13 -08:00
sframe-dump.c Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
sframe-error.c Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
sframe-impl.h Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30
sframe.c Update year range in copyright notice of binutils files 2026-01-01 23:22:14 +10:30

libsframe is a support library for the GNU Binutils collection (currently used
by GNU ld, objdump, etc.) to read and write SFrame section data.

Note: This library is currently intended for internal use by GNU Binutils only.
Strict guarantees for ABI compatibility are not provided, and external projects
should not rely on the stability of these interfaces.