Changeset 05b917 in git for libpolys/polys/templates/mod_raw.cc
- Timestamp:
- May 24, 2011, 1:58:48 AM (12 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- 11837bca7c8687cd06debeb9a0100b63423287b1
- Parents:
- e0f4de302feaeed59ca7e6d186663ee351f715cd
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-24 01:58:48+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:50+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/templates/mod_raw.cc
re0f4de r05b917 39 39 { 40 40 const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0}; 41 const unsigned char mach_ o_module[]={0xce,0xfa,0xed,0xfe,0};41 const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0}; 42 42 char buf[BYTES_TO_CHECK+1]; /* one extra for terminating '\0' */ 43 43 struct stat sb; … … 76 76 } 77 77 78 if( (strncmp(buf, (const char *)mach_o, 4)==0) ) /* generic Mach-O module */78 if( (strncmp(buf, (const char *)mach_o, 4)==0) || (strncmp(buf, (const char *)mach_O, 4)==0)) /* generic Mach-O module */ 79 79 { 80 80 LT = LT_MACH_O; … … 147 147 omFreeSize((ADDRESS)binary_name_so, binary_name_so_length * sizeof(char) ); 148 148 149 if( type == LT_ELF || type == LT_HPUX || type == LT_MACH_O)149 if( type != LT_SINGULAR && type != LT_NONE && type != LT_NOTFOUND ) 150 150 handle = dynl_open(pp); 151 151
Note: See TracChangeset
for help on using the changeset viewer.