Changeset 6e81fc in git


Ignore:
Timestamp:
Jul 27, 2012, 7:06:33 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
ed667705fe7e65276090037dbcb57ee42dc3023f
Parents:
56bce656d03daaefa0813464effa1185b38c6673
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-27 19:06:33+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-27 19:07:29+02:00
Message:
enable loading of 64-bit Mach-O bundles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/mod_raw.cc

    r56bce65 r6e81fc  
    3838  const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0};
    3939  const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0};
     40   
     41  const unsigned char mach_o64[]={0xfe,0xed,0xfa,0xcf,0};
     42  const unsigned char mach_O64[]={0xcf,0xfa,0xed,0xfe,0};
     43   
    4044  char        buf[BYTES_TO_CHECK+1];        /* one extra for terminating '\0' */
    4145  struct stat sb;
     
    8286  }
    8387
    84   if( (strncmp(buf, (const char *)mach_O, 4)==0)) /* Mach-O bundle */
     88  if( (strncmp(buf, (const char *)mach_o64, 4)==0) || (strncmp(buf, (const char *)mach_O64, 4)==0)) /* generic Mach-O 64-bit module */
    8589  {
    8690    LT = LT_MACH_O;
     
    8993    goto lib_type_end;
    9094  }
    91 
    92 
     95   
    9396  if( (strncmp(buf, "\02\020\01\016\05\022@", 7)==0))
    9497  {
Note: See TracChangeset for help on using the changeset viewer.