Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Macho support #43

Merged
merged 9 commits into from
May 12, 2015
Merged

Macho support #43

merged 9 commits into from
May 12, 2015

Conversation

SantiagoTorres
Copy link
Contributor

General review of the mach-o loading functions.

I tried to clean the module up a little bit for readability also

@SantiagoTorres
Copy link
Contributor Author

Forgot to mention, fixes #29

Mostly replaces C99-styled comments with their universally-compliant
versions; Tries to reorganize the sections (macro-first, type
definition, and class defintion last); and repharses comments to address
readablility.
Tried to match comment styles. Added FIXME's to places that might need
review later.

Conflicts:
	libs/getExecSections/getExec.cpp
After some querying Markus about a commented function in this module, I
decided to remove a commented-out function that wasn't part of the spec.
[ci skip]

Conflicts:
	libs/getExecSections/getExec.cpp
The function didn't quite match what was intended for it. A TargetArch t
was passed -- as a value -- and then overwritten inside the code. It was
never checked to make any decisions.

From discussions spawned in slack, I could figure that we wanted to use
t to select one of the available architechtures in the FAT header.

Conflicts:
	libs/getExecSections/getExec.cpp
The older way of doing this was iterating over all executable code, now,
we check the ExecCodeProvider's flags to verify that we are actually
loading code for the specified architechture

Conflicts:
	libs/getExecSections/getExec.cpp
@SantiagoTorres SantiagoTorres force-pushed the macho-support branch 2 times, most recently from 2a78cda to 9672789 Compare May 10, 2015 04:36
@dguido
Copy link
Member

dguido commented May 12, 2015

👍

gaasedelen added a commit that referenced this pull request May 12, 2015
@gaasedelen gaasedelen merged commit 968e604 into master May 12, 2015
@SantiagoTorres SantiagoTorres deleted the macho-support branch May 13, 2015 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants