Page MenuHomeFreeBSD

crunchide: Correct 64-bit section header offset
ClosedPublic

Authored by emaste on Jan 16 2015, 4:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 6:34 PM
Unknown Object (File)
Sat, May 11, 8:19 AM
Unknown Object (File)
Apr 21 2024, 5:51 AM
Unknown Object (File)
Mar 28 2024, 8:19 AM
Unknown Object (File)
Feb 23 2024, 12:09 PM
Unknown Object (File)
Feb 20 2024, 7:54 PM
Unknown Object (File)
Feb 9 2024, 4:03 PM
Unknown Object (File)
Nov 14 2023, 1:14 AM
Tokens
"Like" token, awarded by pfg.

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
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 ;).