Chameleon

Chameleon Commit Details

Date:2011-06-18 11:10:21 (12 years 9 months ago)
Author:Azimutz
Commit:1025
Parents: 1024
Message:... sync modules.c with trunk...
Changes:
M/branches/azimutz/Chazi/i386/boot2/modules.c

File differences

branches/azimutz/Chazi/i386/boot2/modules.c
1717
1818
1919
20
20
2121
2222
2323
......
8787
8888
8989
90
90
9191
9292
9393
......
186186
187187
188188
189
189
190190
191191
192192
......
371371
372372
373373
374
374
375375
376376
377377
......
380380
381381
382382
383
383
384384
385385
386386
......
892892
893893
894894
895
895
896896
897897
898898
......
911911
912912
913913
914
914
915915
916916
917917
......
929929
930930
931931
932
932
933933
934934
935935
......
954954
955955
956956
957
957
958958
959959
960960
......
10861086
10871087
10881088
1089
1089
10901090
10911091
10921092
......
11341134
11351135
11361136
1137
1137
11381138
11391139
11401140
#if CONFIG_MODULE_DEBUG
#define DBG(x...)printf(x);
#define DBGPAUSE()getc() //getchar()
#define DBGPAUSE()getc() // getchar()
#else
#define DBG(x...)
#define DBGPAUSE()
else
{
// The module does not have a valid start function
printf("Unable to start %s\n", SYMBOLS_MODULE); getc(); //getchar();
printf("Unable to start %s\n", SYMBOLS_MODULE); getc(); //Azi: getchar();
}
}
}
else // The module does not have a valid start function. This may be a library.
{
printf("WARNING: Unable to start %s\n", module);
getc(); //getchar();
getc(); //Azi: getchar();
}
#else
else msglog("WARNING: Unable to start %s\n", module);
else
{
verbose("Invalid mach magic 0x%X\n", ((struct mach_header*)binary)->magic);
//getchar();
//getc(); //Azi: getchar();
return NULL;
}
/*if(((struct mach_header*)binary)->filetype != MH_DYLIB)
{
printf("Module is not a dylib. Unable to load.\n");
getchar();
getc(); //Azi: getchar();
return NULL; // Module is in the incorrect format
}*/
else
{
printf("Unable to bind symbol %s\n", symbolName);
getc(); //getchar();
getc(); //Azi: getchar();
}
segmentAddress += sizeof(void*);
else
{
printf("Unable to bind symbol %s\n", symbolName);
getc(); //getchar();
getc(); //Azi: getchar();
}
segmentAddress += tmp + sizeof(void*);
else
{
printf("Unable to bind symbol %s\n", symbolName);
getc(); //getchar();
getc(); //Azi: getchar();
}
segmentAddress += (immediate * sizeof(void*)) + sizeof(void*);
else
{
printf("Unable to bind symbol %s\n", symbolName);
getc(); //getchar();
getc(); //Azi: getchar();
}
break;
}
#if CONFIG_MODULE_DEBUG
//print_hook_list();
//getchar();
//getc(); //Azi: getchar();
#endif
}
void dyld_stub_binder()
{
printf("ERROR: dyld_stub_binder was called, should have been take care of by the linker.\n");
getc(); //getchar();
getc(); //Azi: getchar();
}
#else /* CONFIG_MODULES */

Archive Download the corresponding diff file

Revision: 1025