Monday, 20 December 2010

ELF rewriting - working again

I had to throw away the algorithm in my last post to work properly
for ELF32 files where the text and code do not provide a gap to stuff
the new .hash in.

The new code is working much better for ELF32 and ELF64 - but I have
a minor bug to fix ("strip"ping the executable results in damage, because
I broke a rule somewhere). I am creating a spare area just before the
.text section is loaded, and creating a dummy section to point to it,
but libbfd (as used in "strip") doesnt like me; not surprising really,
as I am being mean and nasty.

Post created by CRiSP v10.0.2c-b5918

No comments:

Post a Comment