]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwelf: add dwelf_elf_remove_debug_relocs users/amerey/try-remove-relocs2
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:47:39 +0000 (01:47 -0400)
commite77d120d0bc1ce864069ee90219c3ea8a0adc910
tree66fd05322a086173cde8c7f6747de8b63ce2db9c
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/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]