Permalink
Browse files

We don't need to load LINKEDIT.

  • Loading branch information...
1 parent 17c734c commit 12df66e372576a225fa5aa37fc5c6e210ce33cfe @shinh committed Mar 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ld-mac.cc
View
@@ -221,7 +221,7 @@ class MachOLoader {
for (size_t i = 0; i < segments.size(); i++) {
Segment* seg = segments[i];
const char* name = seg->segname;
- if (!strcmp(name, SEG_PAGEZERO)) {
+ if (!strcmp(name, SEG_PAGEZERO) || !strcmp(name, SEG_LINKEDIT)) {
continue;
}

0 comments on commit 12df66e

Please sign in to comment.