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)
Thu, Mar 28, 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
Unknown Object (File)
Oct 28 2023, 2:48 AM
Unknown Object (File)
Oct 26 2023, 4:47 AM
Unknown Object (File)
Oct 13 2023, 10:51 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 ;).