]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwelf: add dwelf_elf_remove_debug_relocs users/amerey/try-remove-relocs
authorDi Chen <dichen@redhat.com>
Fri, 18 Oct 2024 02:38:52 +0000 (22:38 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 18 Oct 2024 05:29:47 +0000 (01:29 -0400)
commita88b2a0d6e139bb3293bf53cf3aa1ddb19b83720
treeda4bfc31150a45d2d4fda163c9a840da829d0ce5
parent245f19c1e285599bc7441d096d672628bed13797
libdwelf: add dwelf_elf_remove_debug_relocs

Provide a public function for removing debug section relocations.

eu-strip previously contained the code to remove debug section
relocations.  This patch moves that code into
dwelf_elf_remove_debug_relocs.

https://sourceware.org/bugzilla/show_bug.cgi?id=31447

Signed-off-by: Di Chen <dichen@redhat.com>
Signed-off-by: Aaron Merey <amerey@redhat.com>
libdw/libdw.map
libdwelf/Makefile.am
libdwelf/dwelf_elf_remove_debug_relocations.c [new file with mode: 0644]
libdwelf/libdwelf.h
src/strip.c
tests/Makefile.am
tests/dwelf_reloc_dbg_scn [new file with mode: 0755]
tests/remove-relocs [new file with mode: 0755]
tests/remove-relocs.c [new file with mode: 0644]
tests/run-remove-relocs.sh [new file with mode: 0755]
tests/testfile-remove-relocs.bz2 [new file with mode: 0644]