Lines Matching refs:CurrentSymEx

206     ELSymEx*            CurrentSymEx;  in ELi_RelocateSym()  local
240 CurrentSymEx = &DmySymEx; in ELi_RelocateSym()
242 CurrentSymEx->next = (void*)(malloc( sizeof(ELSymEx))); in ELi_RelocateSym()
243 CurrentSymEx = (ELSymEx*)(CurrentSymEx->next); in ELi_RelocateSym()
246 ELi_GetEntry( ElfHandle, SymShdr, i, &(CurrentSymEx->Sym)); in ELi_RelocateSym()
249 CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, CurrentSymEx->Sym.st_shndx); in ELi_RelocateSym()
251 CurrentSymEx->debug_flag = CurrentShdrEx->debug_flag; in ELi_RelocateSym()
253 CurrentSymEx->debug_flag = 0; in ELi_RelocateSym()
258 CurrentSymEx->next = NULL; in ELi_RelocateSym()
263 CurrentSymEx = ElfHandle->SymEx; in ELi_RelocateSym()
265 if( ELF32_ST_TYPE( CurrentSymEx->Sym.st_info) == STT_FUNC) { in ELi_RelocateSym()
266 CurrentSymEx->thumb_flag = (u16)(ELi_CodeIsThumb( ElfHandle, CurrentSymEx->Sym.st_shndx, in ELi_RelocateSym()
267 CurrentSymEx->Sym.st_value)); in ELi_RelocateSym()
269 CurrentSymEx->thumb_flag = 0; in ELi_RelocateSym()
271 CurrentSymEx = CurrentSymEx->next; in ELi_RelocateSym()
287 CurrentSymEx = ELi_GetSymExfromList( ElfHandle->SymEx, in ELi_RelocateSym()
290 if( CurrentSymEx->debug_flag == 1) { /*When it is debugging information*/ in ELi_RelocateSym()
302 if( CurrentSymEx->Sym.st_shndx == SHN_UNDEF) { in ELi_RelocateSym()
304 … ELi_GetStrAdr( ElfHandle, SymShdr->sh_link, CurrentSymEx->Sym.st_name, sym_str, 128); in ELi_RelocateSym()
337 … CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, CurrentSymEx->Sym.st_shndx); in ELi_RelocateSym()
339 …sym_loaded_adr += CurrentSymEx->Sym.st_value; //sym_loaded_adr is called S in the specifications in ELi_RelocateSym()
341 thumb_func_flag = CurrentSymEx->thumb_flag; in ELi_RelocateSym()
358 CurrentSymEx = ELi_GetSymExfromList( ElfHandle->SymEx, i); in ELi_RelocateSym()
360 if( ((ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_GLOBAL) || in ELi_RelocateSym()
361 (ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_WEAK) || in ELi_RelocateSym()
362 (ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_MW_SPECIFIC))&& in ELi_RelocateSym()
363 (CurrentSymEx->Sym.st_shndx != SHN_UNDEF)) { in ELi_RelocateSym()
369 ELi_GetStrAdr( ElfHandle, SymShdr->sh_link, CurrentSymEx->Sym.st_name, sym_str, 128); in ELi_RelocateSym()
375 CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, CurrentSymEx->Sym.st_shndx); in ELi_RelocateSym()
377 …ExportAdrEntry->adr = (void*)(CurrentShdrEx->loaded_adr + ((CurrentSymEx->Sym.st_value)&0xFFFFFFFE… in ELi_RelocateSym()
378 ExportAdrEntry->func_flag = (u16)(ELF32_ST_TYPE( CurrentSymEx->Sym.st_info)); in ELi_RelocateSym()
379 ExportAdrEntry->thumb_flag = CurrentSymEx->thumb_flag; in ELi_RelocateSym()
396 CurrentSymEx = ElfHandle->SymEx; in ELi_RelocateSym()
397 if( CurrentSymEx) { in ELi_RelocateSym()
398 while( CurrentSymEx->next != NULL) { in ELi_RelocateSym()
399 FwdSymEx = CurrentSymEx; in ELi_RelocateSym()
400 CurrentSymEx = CurrentSymEx->next; in ELi_RelocateSym()
424 ELSymEx* CurrentSymEx; in ELi_DiscriminateGlobalSym() local
439 CurrentSymEx = &DmySymEx; in ELi_DiscriminateGlobalSym()
441 CurrentSymEx->next = (void*)(malloc( sizeof(ELSymEx))); in ELi_DiscriminateGlobalSym()
442 CurrentSymEx = (ELSymEx*)(CurrentSymEx->next); in ELi_DiscriminateGlobalSym()
445 ELi_GetEntry( ElfHandle, SymShdr, i, &(CurrentSymEx->Sym)); in ELi_DiscriminateGlobalSym()
448 CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, CurrentSymEx->Sym.st_shndx); in ELi_DiscriminateGlobalSym()
450 CurrentSymEx->debug_flag = CurrentShdrEx->debug_flag; in ELi_DiscriminateGlobalSym()
452 CurrentSymEx->debug_flag = 0; in ELi_DiscriminateGlobalSym()
457 CurrentSymEx->next = NULL; in ELi_DiscriminateGlobalSym()
462 CurrentSymEx = ElfHandle->SymEx; in ELi_DiscriminateGlobalSym()
464 if( ELF32_ST_TYPE( CurrentSymEx->Sym.st_info) == STT_FUNC) { in ELi_DiscriminateGlobalSym()
465 CurrentSymEx->thumb_flag = (u16)(ELi_CodeIsThumb( ElfHandle, CurrentSymEx->Sym.st_shndx, in ELi_DiscriminateGlobalSym()
466 CurrentSymEx->Sym.st_value)); in ELi_DiscriminateGlobalSym()
468 CurrentSymEx->thumb_flag = 0; in ELi_DiscriminateGlobalSym()
470 CurrentSymEx = CurrentSymEx->next; in ELi_DiscriminateGlobalSym()
475 CurrentSymEx = ELi_GetSymExfromList( ElfHandle->SymEx, i); in ELi_DiscriminateGlobalSym()
477 if( ((ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_GLOBAL) || in ELi_DiscriminateGlobalSym()
478 (ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_WEAK) || in ELi_DiscriminateGlobalSym()
479 (ELF32_ST_BIND( CurrentSymEx->Sym.st_info) == STB_MW_SPECIFIC))&& in ELi_DiscriminateGlobalSym()
480 (CurrentSymEx->Sym.st_shndx != SHN_UNDEF)) { in ELi_DiscriminateGlobalSym()
486 ELi_GetStrAdr( ElfHandle, SymShdr->sh_link, CurrentSymEx->Sym.st_name, sym_str, 128); in ELi_DiscriminateGlobalSym()
492 if( (CurrentSymEx->Sym.st_shndx) < SHN_LORESERVE) { //When there is a related section in ELi_DiscriminateGlobalSym()
493 if( (CurrentSymEx->Sym.st_shndx == SHN_ABS)) { in ELi_DiscriminateGlobalSym()
495 ExportAdrEntry->adr = (void*)((CurrentSymEx->Sym.st_value)&0xFFFFFFFE); in ELi_DiscriminateGlobalSym()
497 … CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, CurrentSymEx->Sym.st_shndx); in ELi_DiscriminateGlobalSym()
499 …ExportAdrEntry->adr = (void*)(CurrentShdrEx->loaded_adr + ((CurrentSymEx->Sym.st_value)&0xFFFFFFFE… in ELi_DiscriminateGlobalSym()
501 ExportAdrEntry->func_flag = (u16)(ELF32_ST_TYPE( CurrentSymEx->Sym.st_info)); in ELi_DiscriminateGlobalSym()
502 ExportAdrEntry->thumb_flag = CurrentSymEx->thumb_flag; in ELi_DiscriminateGlobalSym()
520 CurrentSymEx = ElfHandle->SymEx; in ELi_DiscriminateGlobalSym()
521 if( CurrentSymEx) { in ELi_DiscriminateGlobalSym()
522 while( CurrentSymEx->next != NULL) { in ELi_DiscriminateGlobalSym()
523 FwdSymEx = CurrentSymEx; in ELi_DiscriminateGlobalSym()
524 CurrentSymEx = CurrentSymEx->next; in ELi_DiscriminateGlobalSym()
711 ELSymEx* CurrentSymEx; in ELi_CodeIsThumb() local
715 CurrentSymEx = ElfHandle->SymEx; in ELi_CodeIsThumb()
719 while( CurrentSymEx != NULL) { in ELi_CodeIsThumb()
721 if( CurrentSymEx->Sym.st_shndx == sh_index) { in ELi_CodeIsThumb()
722 ELi_GetStrAdr( ElfHandle, SymShdr->sh_link, CurrentSymEx->Sym.st_name, str_adr, 3); in ELi_CodeIsThumb()
728 if( CurrentSymEx->Sym.st_value > offset) { in ELi_CodeIsThumb()
733 CurrentSymEx = CurrentSymEx->next; in ELi_CodeIsThumb()