Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.3
 
1.4
 
MAIN:gmcgarry:20110527072349
 
common.c
_>5757         struct mach_header *hdr = &_mh_execute_header;
 5858         char *ptr = (char *)(hdr + 1);
 5959         int i, j, n;
<>60 -        struct segment_command *segp;
 61 -        struct section *secp;
  60+#ifdef __LP64__
  61+        struct segment_command_64 *segp;
  62+        struct section_64 *secp;
  63+#else
  64+        struct segment_command_32 *segp;
  65+        struct section_32 *secp;
  66+#endif
6267         void (*func)(void);
 6368         void **addr;
 6469 
 6570         for (i = 0; i < (int)hdr->ncmds; i++, ptr += segp->cmdsize) {
<>66 -                segp = (struct segment_command *)ptr;
  71+#ifdef __LP64__
  72+                segp = (struct segment_command_64 *)ptr;
  73+#else
  74+                segp = (struct segment_command_32 *)ptr;
  75+#endif
6776                 if (segp->cmd != LC_SEGMENT || segp->nsects == 0)
 6877                         continue;
<>69 -                secp = (struct section *)(segp + 1);
  78+#ifdef __LP64__
  79+                secp = (struct section_64 *)(segp + 1);
  80+#else
  81+                secp = (struct section_32 *)(segp + 1);
  82+#endif
<_7083                 for (j = 0; j < (int)segp->nsects; j++, secp++) {
 7184                         if (init && _strcmp(secp->sectname, "__constructor") != 0)
 7285                                 continue;
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-23 01:11 +0100