3
Fork 1
mirror of https://sourceware.org/git/elfutils.git synced 2025-12-15 22:26:20 +00:00
No description
Find a file
Mark Wielaard 4544ed87b7 libelf: Add gelf_fsize main check
This test itself isn't super interesting, it just checks that all
Elf_Types are handled by gelf_fsize and that the 32 vs 64 variant
sizes make sense. The interesting part is that it uses the internal
interface (__libelf_type_sizes) to do it. So you don't have to
contruct a whole Elf handle.

It mimics the support for "main checks" in libdw. It adds a way to
compile an individual source file with an optional main function that
can directly access the internal/static functions.

To add new main check tests you have to add an #ifdef MAIN_CHECK with
a main function that calls the test functions to the source file. And
add two make file rules after .SECONDEXPANSION. One starting with
<source_basename>_checks$(EXEEXT) and one starting with
nodist_<source_basename>_check_SOURCES.

	* libelf/gelf_fsize.c: Add MAIN_CHECK part.
	* libelf/Makefile.am: Add gelf_fsize main check rules.

Signed-off-by: Mark Wielaard <mark@klomp.org>
2025-12-15 22:52:40 +01:00
backends
config
debuginfod PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
doc PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
lib
libasm
libcpu Fix const-correctness issues 2025-11-25 20:12:59 -05:00
libdw libdw: Make sure to get .eh_frame_hdr with .eh_frame in getcfi_shdr 2025-12-10 00:38:20 +01:00
libdwelf
libdwfl
libdwfl_stacktrace
libebl
libelf libelf: Add gelf_fsize main check 2025-12-15 22:52:40 +01:00
m4
po po: Update Polish translation 2025-11-30 22:11:49 -05:00
src readelf: improve output format for .gcc_except_table 2025-12-09 12:04:49 +01:00
tests tests: improve reliability of run-sysroot.sh 2025-12-09 12:14:13 -05:00
.gitignore
.mailmap
AUTHORS
AUTHORS.sh
ChangeLog
CONDUCT
configure.ac
CONTRIBUTING
COPYING
COPYING-GPLV2
COPYING-LGPLV3
GPG-KEY
Makefile.am
NEWS PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
NOTES
README
SECURITY
THANKS
TODO

The elfutils project provides libraries and tools for ELF files and DWARF data.

The project home is http://elfutils.org/

Releases are published at ftp://sourceware.org/pub/elfutils/
Which can also be found at https://sourceware.org/elfutils/ftp/

To build a release do: ./configure && make && make check
Please check the configure summary to make sure all recommended
features are enabled. There should be no failures after make check.

Please reports bugs at https://sourceware.org/bugzilla/

The current elfutils source code can be checked out with
git clone git://sourceware.org/git/elfutils.git

To build a git checkout do:
  autoreconf -i -f && \
  ./configure --enable-maintainer-mode && \
  make && make check

The developer mailinglist to send patches to is
elfutils-devel@sourceware.org.
https://sourceware.org/ml/elfutils-devel/

To subscribe send an email to elfutils-devel-subscribe@sourceware.org
Or use the form at https://sourceware.org/mailman/listinfo/elfutils-devel

See the CONTRIBUTING file for how to propose patches to the code.

See the NOTES files for some design decisions and notes.

See the SECURITY file for defining and handling security-sensitive bugs.