Skip to content

Instantly share code, notes, and snippets.

@mbauman
Created May 6, 2011 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbauman/959440 to your computer and use it in GitHub Desktop.
Save mbauman/959440 to your computer and use it in GitHub Desktop.
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index df4c0da..d6f170c 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -822,6 +822,7 @@ copy_data_segment (struct load_command *lc)
}
else if (strncmp (sectp->sectname, "__la_symbol_ptr", 16) == 0
|| strncmp (sectp->sectname, "__nl_symbol_ptr", 16) == 0
+ || strncmp (sectp->sectname, "__got", 16) == 0
|| strncmp (sectp->sectname, "__la_sym_ptr2", 16) == 0
|| strncmp (sectp->sectname, "__dyld", 16) == 0
|| strncmp (sectp->sectname, "__const", 16) == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment