Lines Matching refs:CurrentShdrEx
629 ELShdrEx* CurrentShdrEx; in elLoadSections() local
640 CurrentShdrEx = &DmyShdrEx; in elLoadSections()
642 CurrentShdrEx->next = ELi_Malloc( elElfDesc, MYObject, sizeof(ELShdrEx)); in elLoadSections()
643 if(CurrentShdrEx->next == NULL) { in elLoadSections()
646 CurrentShdrEx = (ELShdrEx*)(CurrentShdrEx->next); in elLoadSections()
647 OSAPI_CPUFILL8( CurrentShdrEx, 0, sizeof(ELShdrEx)); //Zero-clear in elLoadSections()
651 CurrentShdrEx->debug_flag = 1; in elLoadSections()
654 ELi_GetShdr( elElfDesc, i, &(CurrentShdrEx->Shdr)); in elLoadSections()
655 CurrentShdrEx->debug_flag = 0; in elLoadSections()
658 CurrentShdrEx->next = NULL; in elLoadSections()
668 CurrentShdrEx = ELi_GetShdrExfromList( elElfDesc->ShdrEx, i); in elLoadSections()
672 if( CurrentShdrEx->debug_flag == 1) { /*When it is debugging information*/ in elLoadSections()
678 if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_EXECINSTR))&& in elLoadSections()
679 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
681 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
682 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
686 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in elLoadSections()
687 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
689 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
690 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
694 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in elLoadSections()
695 (CurrentShdrEx->Shdr.sh_type == SHT_NOBITS)) { in elLoadSections()
697 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
698 … ELi_AllocSectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
702 else if( (CurrentShdrEx->Shdr.sh_flags == SHF_ALLOC)&& in elLoadSections()
703 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in elLoadSections()
705 CurrentShdrEx->loaded_adr = (u32) in elLoadSections()
706 … ELi_CopySectionToBuffer( elElfDesc, MYObject, &(CurrentShdrEx->Shdr)); in elLoadSections()
711 if( CurrentShdrEx->loaded_adr == NULL) { //When failed in ELi_CopySectionToBuffer in elLoadSections()
715 …TER_RELOCATION_INFO( ISTDRELOCATIONPROC_AUTO, dll_fileid, elf_num, i, CurrentShdrEx->loaded_adr, (… in elLoadSections()
719 i, CurrentShdrEx->loaded_adr); in elLoadSections()
732 CurrentShdrEx = ELi_GetShdrExfromList( elElfDesc->ShdrEx, i); in elLoadSections()
734 if( CurrentShdrEx->debug_flag == 1) { /*When it is debugging information*/ in elLoadSections()
737 if( CurrentShdrEx->Shdr.sh_type == SHT_REL) { in elLoadSections()
740 CurrentShdrEx->Shdr.sh_info); in elLoadSections()
746 num_of_entry = (CurrentShdrEx->Shdr.sh_size) / in elLoadSections()
747 (CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
751 PRINTDEBUG( "link : %x\n", CurrentShdrEx->Shdr.sh_link); in elLoadSections()
752 PRINTDEBUG( "info : %x\n", CurrentShdrEx->Shdr.sh_info); in elLoadSections()
757 ELi_GetShdr( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->SymShdr)); in elLoadSections()
758 ELi_GetSent( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->Sym), in elLoadSections()
769 offset += (u32)(CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
773 else if( CurrentShdrEx->Shdr.sh_type == SHT_RELA) { in elLoadSections()
776 CurrentShdrEx->Shdr.sh_info); in elLoadSections()
783 num_of_entry = (CurrentShdrEx->Shdr.sh_size) / in elLoadSections()
784 (CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
787 PRINTDEBUG( "link : %x\n", CurrentShdrEx->Shdr.sh_link); in elLoadSections()
788 PRINTDEBUG( "info : %x\n", CurrentShdrEx->Shdr.sh_info); in elLoadSections()
793 ELi_GetShdr( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->SymShdr)); in elLoadSections()
794 ELi_GetSent( elElfDesc, CurrentShdrEx->Shdr.sh_link, &(elElfDesc->Sym), in elLoadSections()
805 offset += (u32)(CurrentShdrEx->Shdr.sh_entsize); in elLoadSections()
809 else if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in elLoadSections()
820 CurrentShdrEx = elElfDesc->ShdrEx; in elLoadSections()
821 if( CurrentShdrEx) { in elLoadSections()
823 FwdShdrEx = CurrentShdrEx; in elLoadSections()
824 CurrentShdrEx = CurrentShdrEx->next; in elLoadSections()
826 }while( CurrentShdrEx != NULL); in elLoadSections()