Chameleon

Chameleon Commit Details

Date:2010-08-10 05:01:04 (13 years 7 months ago)
Author:Evan Lojewski
Commit:339
Parents: 338
Message:Renamed a function
Changes:
M/branches/meklort/i386/boot2/modules.c
M/branches/meklort/i386/boot2/modules.h

File differences

branches/meklort/i386/boot2/modules.c
517517
518518
519519
520
520
521521
522522
523523
......
827827
828828
829829
830
830
831831
832832
833833
......
904904
905905
906906
907
907
908908
909909
910910
i += strlen((char*)&bind_stream[i]);
//printf("BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: %s, 0x%X\n", symbolName, symboFlags);
symbolAddr = lookup_external_all(symbolName);
symbolAddr = lookup_all_symbols(symbolName);
break;
// Look for symbols using the Smbols moduel function.
// If non are found, look through the list of module symbols
unsigned int lookup_external_all(const char* name)
unsigned int lookup_all_symbols(const char* name)
{
unsigned int addr = 0xFFFFFFFF;
if(lookup_symbol)
getc();
// Patch stub
void* symbolAddress = (void*)lookup_external_all(symbolString + symbolEntry->n_un.n_strx);
void* symbolAddress = (void*)lookup_all_symbols(symbolString + symbolEntry->n_un.n_strx);
if((0xFFFFFFFF == (UInt32)symbolAddress) &&
strcmp(symbolString + symbolEntry->n_un.n_strx, SYMBOL_DYLD_STUB_BINDER) != 0)
branches/meklort/i386/boot2/modules.h
4444
4545
4646
47
47
4848
4949
unsigned int handle_symtable(UInt32 base, struct symtab_command* symtabCommand, char* symbolStub, char* nonlazy);
unsigned int lookup_external_all(const char* name);
unsigned int lookup_all_symbols(const char* name);
#endif /* __BOOT_MODULES_H */

Archive Download the corresponding diff file

Revision: 339