Permalink
Browse files

Map __LINKEDIT

Without this, ld in xcode 4 crashes due to

http://www.opensource.apple.com/source/Csu/Csu-79/lazy_dylib_loader.c

Note that we are not using LINKEDIT long time from

12df66e

I cannot remember why I made this change...
  • Loading branch information...
1 parent 892f6be commit dc64505732b146e5aabf9488a98127b06b2ac74e @shinh committed Nov 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ld-mac.cc
View
@@ -347,7 +347,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) || !strcmp(name, SEG_LINKEDIT)) {
+ if (!strcmp(name, SEG_PAGEZERO)) {
continue;
}

0 comments on commit dc64505

Please sign in to comment.