Lines Matching refs:CurrentShdrEx

641     ELShdrEx*   CurrentShdrEx;  in elLoadSections()  local
652 CurrentShdrEx = &DmyShdrEx; in elLoadSections()
654 CurrentShdrEx->next = ELi_Malloc( elElfDesc, MYObject, sizeof(ELShdrEx)); in elLoadSections()
655 if(CurrentShdrEx->next == NULL) { in elLoadSections()
658 CurrentShdrEx = (ELShdrEx*)(CurrentShdrEx->next); in elLoadSections()
659 OSAPI_CPUFILL8( CurrentShdrEx, 0, sizeof(ELShdrEx)); //Clear zero in elLoadSections()
663 CurrentShdrEx->debug_flag = 1; in elLoadSections()
666 ELi_GetShdr( elElfDesc, i, &(CurrentShdrEx->Shdr)); in elLoadSections()
667 CurrentShdrEx->debug_flag = 0; in elLoadSections()
670 CurrentShdrEx->next = NULL; in elLoadSections()
680 CurrentShdrEx = ELi_GetShdrExfromList( elElfDesc->ShdrEx, i); in elLoadSections()
684 if( CurrentShdrEx->debug_flag == 1) { /*When it is debugging information*/ in elLoadSections()
690 if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_EXECINSTR))&& in elLoadSections()
691 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
693 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
694 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
698 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in elLoadSections()
699 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
701 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
702 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
706 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in elLoadSections()
707 (CurrentShdrEx->Shdr.sh_type == SHT_NOBITS)) { in elLoadSections()
709 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
710 … ELi_AllocSectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
714 else if( (CurrentShdrEx->Shdr.sh_flags == SHF_ALLOC)&& in elLoadSections()
715 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
717 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
718 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
723 if( CurrentShdrEx->loaded_adr == NULL) { //When failed in ELi_CopySectionToBuffer in elLoadSections()
727 …TER_RELOCATION_INFO( ISTDRELOCATIONPROC_AUTO, dll_fileid, elf_num, i, CurrentShdrEx->loaded_adr, (… in elLoadSections()
731 i, CurrentShdrEx->loaded_adr); in elLoadSections()
744 CurrentShdrEx = ELi_GetShdrExfromList( elElfDesc->ShdrEx, i); in elLoadSections()
746 if( CurrentShdrEx->debug_flag == 1) { /*When it is debugging information*/ in elLoadSections()
749 if( CurrentShdrEx->Shdr.sh_type == SHT_REL) { in elLoadSections()
752 CurrentShdrEx->Shdr.sh_info); in elLoadSections()
758 num_of_entry = (CurrentShdrEx->Shdr.sh_size) / in elLoadSections()
759 (CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
763 PRINTDEBUG( "link : %x\n", CurrentShdrEx->Shdr.sh_link); in elLoadSections()
764 PRINTDEBUG( "info : %x\n", CurrentShdrEx->Shdr.sh_info); in elLoadSections()
769 ELi_GetShdr( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->SymShdr)); in elLoadSections()
770 ELi_GetSent( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->Sym), in elLoadSections()
781 offset += (u32)(CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
785 else if( CurrentShdrEx->Shdr.sh_type == SHT_RELA) { in elLoadSections()
788 CurrentShdrEx->Shdr.sh_info); in elLoadSections()
795 num_of_entry = (CurrentShdrEx->Shdr.sh_size) / in elLoadSections()
796 (CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
799 PRINTDEBUG( "link : %x\n", CurrentShdrEx->Shdr.sh_link); in elLoadSections()
800 PRINTDEBUG( "info : %x\n", CurrentShdrEx->Shdr.sh_info); in elLoadSections()
805 ELi_GetShdr( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->SymShdr)); in elLoadSections()
806 ELi_GetSent( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->Sym), in elLoadSections()
817 offset += (u32)(CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
821 else if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in elLoadSections()
832 CurrentShdrEx = elElfDesc->ShdrEx; in elLoadSections()
833 if( CurrentShdrEx) { in elLoadSections()
835 FwdShdrEx = CurrentShdrEx; in elLoadSections()
836 CurrentShdrEx = CurrentShdrEx->next; in elLoadSections()
838 }while( CurrentShdrEx != NULL); in elLoadSections()