Last active
August 29, 2015 13:57
-
-
Save samdmarshall/9432357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint64_t offset = section->offset; | |
struct segment_64 *text_segment = (struct segment_64 *)text_segment_pointer; | |
uint64_t addr_offset = section->addr - text_segment->vm_addr; | |
if (section->offset != addr_offset) { | |
offset = addr_offset; | |
} | |
uint64_t offset = section->offset; | |
struct segment_32 *text_segment = (struct segment_32 *)text_segment_pointer; | |
uint64_t addr_offset = section->addr - text_segment->vm_addr; | |
if (section->offset != addr_offset) { | |
offset = addr_offset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment