1
0
Fork 0
mirror of https://sourceware.org/git/elfutils.git synced 2026-03-06 14:50:43 +00:00
No description
Find a file
Mark Wielaard 269efcc9bd Replace assert with eu_static_assert where possible.
This moves the assert from being checked at runtime to being checked
at compile time.

	* libdwfl/dwfl_segment_report_module.c (dwfl_segment_report_module):
	Replace asserts with eu_static_assert.
	* libdwfl/linux-core-attach.c (core_set_initial_registers):
	Likewise.
	* libdwfl/linux-kernel-modules.c (check_notes): Likewise.
	* libebl/eblopenbackend.c (openbackend): Likewise.
	* libelf/elf_begin.c (file_read_elf): Likewise.
	(write_file): Likewise.
	* libelf/elf_clone.c (elf_clone): Likewise.
	* libelf/elf_getshdrstrndx.c (elf_getshdrstrndx): Likewise.
	* libelf/elf_newscn.c (elf_newscn): Likewise.
	* libelf/gelf_getauxv.c (gelf_getauxv): Likewise.
	* libelf/gelf_getdyn.c (gelf_getdyn): Likewise.
	* libelf/gelf_getlib.c (gelf_getlib): Likewise.
	* libelf/gelf_getsym.c (gelf_getsym): Likewise.
	* libelf/gelf_getsyminfo.c (gelf_getsyminfo): Likewise.
	* libelf/gelf_getsymshndx.c (gelf_getsymshndx): Likewise.
	* libelf/gelf_getverdaux.c (gelf_getverdaux): Likewise.
	* libelf/gelf_getverdef.c (gelf_getverdef): Likewise.
	* libelf/gelf_getvernaux.c (gelf_getvernaux): Likewise.
	* libelf/gelf_getverneed.c (gelf_getverneed): Likewise.
	* libelf/gelf_getversym.c (gelf_getversym): Likewise.
	* libelf/gelf_update_syminfo.c (gelf_update_syminfo): Likewise.
	* libelf/gelf_update_verdaux.c (gelf_update_verdaux): Likewise.
	* libelf/gelf_update_verdef.c (gelf_update_verdef): Likewise.
	* libelf/gelf_update_vernaux.c (gelf_update_vernaux): Likewise.
	* libelf/gelf_update_verneed.c (gelf_update_verneed): Likewise.
	* libelf/gelf_update_versym.c (gelf_update_versym): Likewise.
	* libelf/note_xlate.h (elf_cvt_note): Likewise.
	* libelf/version_xlate.h (elf_cvt_Verdef): Likewise.
	(elf_cvt_Verneed): Likewise.
	* src/arlib.c (arlib_init): Likewise.
	(arlib_add_symref): Likewise.
	* src/strip.c (handle_elf): Likewise.
	* src/unstrip.c (adjust_relocs): Likewise.

Signed-off-by: Mark Wielaard <mark@klomp.org>
2026-03-06 15:47:55 +01:00
.forgejo/workflows forge: Add a forgejo workflow to run various tests 2026-01-06 18:06:13 +01:00
backends aarch64: Recognize SHT_AARCH64_ATTRIBUTES 2026-02-26 00:03:26 +01:00
config configure: Add -Wdeprecated-non-prototype and -Wfree-labels if available 2026-02-09 18:30:48 +01:00
debuginfod debuginfod: add filename to archive_exception log 2026-02-17 09:11:15 -05:00
doc PR33937: docs: catch up debuginfod-find / client docs to code 2026-03-03 08:17:17 -05:00
lib libdw: Fix eu_search_tree TOCTOU bugs 2025-06-02 17:06:31 -04:00
libasm Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
libcpu Fix const-correctness issues 2025-11-25 20:12:59 -05:00
libdw dwarf_tag.c: Protect cu->last_abbrev_offset with lock 2026-03-02 08:08:26 -05:00
libdwelf Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
libdwfl Replace assert with eu_static_assert where possible. 2026-03-06 15:47:55 +01:00
libdwfl_stacktrace PR33854: fix regression in dwflst_perf_sample_getframes 2026-02-05 10:18:55 -05:00
libebl Replace assert with eu_static_assert where possible. 2026-03-06 15:47:55 +01:00
libelf Replace assert with eu_static_assert where possible. 2026-03-06 15:47:55 +01:00
m4 Update minimum C compiler supported to C11 plus stdatomic.h 2025-01-11 00:19:28 +01:00
po po: Update Polish translation 2025-11-30 22:11:49 -05:00
src Replace assert with eu_static_assert where possible. 2026-03-06 15:47:55 +01:00
tests tests: Skip tests on non-ELF bitcode object files 2026-02-17 13:47:29 +01:00
.gitignore Replace usage of ar with stored library manifest files 2025-01-21 18:57:34 +01:00
.mailmap AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
AUTHORS AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
AUTHORS.sh AUTHORS: Use generator script & git mailmap 2022-04-24 19:39:47 -04:00
ChangeLog readelf: display dynamic symtab without section headers 2023-04-18 21:46:53 +02:00
CONDUCT Update code of conduct 2024-06-07 14:06:53 -04:00
configure.ac configure: Add -Wdeprecated-non-prototype and -Wfree-labels if available 2026-02-09 18:30:48 +01:00
CONTRIBUTING CONTRIBUTING: Add Policy on the Use of LLM-generated Content 2026-02-17 15:13:11 -05:00
COPYING Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
COPYING-GPLV2 Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
COPYING-LGPLV3 Update name, license and contributor policy. 2012-06-05 23:12:05 +02:00
GPG-KEY GPG-KEY: Add key for Aaron Merey 2024-03-01 18:10:33 +01:00
Makefile.am Makefile.am: Add errors to lcov ignore list 2025-08-12 10:39:58 -04:00
NEWS PR33635: Introduce debuginfod --home-redirect and --home-html 2025-12-05 09:37:13 -05:00
NOTES Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac 2020-12-12 18:06:28 +01:00
README SECURITY: new file 2023-07-03 10:25:40 -04:00
SECURITY SECURITY: new file 2023-07-03 10:25:40 -04:00
THANKS More correct info on contributors. 2009-01-10 18:17:09 -08:00
TODO Fix spelling typos in NEWS, NOTES, TODO, and in comments of configure.ac 2020-12-12 18:06:28 +01:00

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.