]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Just admit we don't support stripping ar archives for now.
authorMark Wielaard <mjw@redhat.com>
Tue, 9 Jun 2015 14:26:16 +0000 (16:26 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 10 Jun 2015 12:14:57 +0000 (14:14 +0200)
commitcb499c489299de2b77472fc836a6b28ecf5361b9
tree0a2a795274c24cd1de4489e40dec2d00e537dda8
parent9e3d5c2656c993e391cc126f9e1bb921e0af4873
strip: Just admit we don't support stripping ar archives for now.

We try to handle (in-place) stripping of ar archives, but since elf_clone
doesn't really support cloning ar members and we don't handle reducing
the size of the members, moving the offsets of other members. This causes
crashes or writing garbage. Better to just admit that for now we don't
support stripping archives. Call error when we see an ELF_K_AR file.

https://bugzilla.redhat.com/show_bug.cgi?id=766156
https://lists.fedorahosted.org/pipermail/elfutils-devel/2009-August/000567.html

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/strip.c