[Patch] Don't relocate compressed sections

Mark Wielaard mjw at redhat.com
Wed Mar 28 09:44:52 UTC 2012


Hi,

As pointed out in https://bugzilla.redhat.com/show_bug.cgi?id=807053
relocating a compressed section will corrupt it. To more properly
support compressed sections we should finish the roland/relocate branch
for lazy relocations work. The best we can do for now is to not corrupt
the contents of the compressed sections and not crash when we don't have
all Dwarf debug section data. The attached two patches do that.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-readelf.c-Check-debug-section-data-before-trying-to-.patch
Type: text/x-patch
Size: 2214 bytes
Desc: not available
URL: <https://fedorahosted.org/pipermail/elfutils-devel/attachments/20120328/474b646e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-relocate.c-relocate_section-Don-t-touch-compressed-s.patch
Type: text/x-patch
Size: 1613 bytes
Desc: not available
URL: <https://fedorahosted.org/pipermail/elfutils-devel/attachments/20120328/474b646e/attachment-0001.bin>


More information about the elfutils-devel mailing list