Page MenuHomeFreeBSD

crunchide: Correct 64-bit section header offset
ClosedPublic

Authored by emaste on Jan 16 2015, 4:29 PM.

Details

Reviewers
pfg
imp
Summary

For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. Instead of using an incorrect hardcoded offset, let the compiler figure it out for us with offsetof().

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

emaste retitled this revision from to crunchide: Correct 64-bit section header offset.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a subscriber: Unknown Object (MLST).
imp added a reviewer: imp.
This revision is now accepted and ready to land.Jan 16 2015, 6:48 PM

Nice, thanks! FWIW, I meant to approve it you guys beat me ;).