Lines Matching refs:Shdr
335 ELi_GetShdr( ElfHandle, i, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
344 CurrentShdrEx->Shdr.sh_name, in ELi_LoadObject()
350 …th = ELi_GetStrLen( ElfHandle, ElfHandle->CurrentEhdr.e_shstrndx, CurrentShdrEx->Shdr.sh_name) + 1; in ELi_LoadObject()
358 CurrentShdrEx->Shdr.sh_name, in ELi_LoadObject()
371 CurrentShdrEx->Shdr.sh_type = SPECIAL_SECTION_TYPE; in ELi_LoadObject()
372 CurrentShdrEx->Shdr.sh_flags = 0; in ELi_LoadObject()
373 CurrentShdrEx->Shdr.sh_addr = 0; in ELi_LoadObject()
374 CurrentShdrEx->Shdr.sh_offset = 0; in ELi_LoadObject()
375 …CurrentShdrEx->Shdr.sh_size = (section_num - 1)*4; //(ElfHandle- >CurrentEhdr.e_shnum)*4; (When ol… in ELi_LoadObject()
376 CurrentShdrEx->Shdr.sh_link = 0; in ELi_LoadObject()
377 CurrentShdrEx->Shdr.sh_info = 0; in ELi_LoadObject()
378 CurrentShdrEx->Shdr.sh_addralign = 4; in ELi_LoadObject()
379 CurrentShdrEx->Shdr.sh_entsize = 4; in ELi_LoadObject()
407 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in ELi_LoadObject()
410 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
420 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in ELi_LoadObject()
421 (CurrentShdrEx->Shdr.sh_type == SHT_NOBITS)) { in ELi_LoadObject()
435 else if( CurrentShdrEx->Shdr.sh_type == SPECIAL_SECTION_TYPE) { in ELi_LoadObject()
438 u32 sh_size = CurrentShdrEx->Shdr.sh_size; in ELi_LoadObject()
453 else if( CurrentShdrEx->Shdr.sh_type >= SHT_LOPROC) { in ELi_LoadObject()
456 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
459 else if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in ELi_LoadObject()
476 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
479 ELi_GetStrAdr( ElfHandle, CurrentShdrEx->Shdr.sh_link, //Get symbol string in ELi_LoadObject()
486 … length = ELi_GetStrLen( ElfHandle, CurrentShdrEx->Shdr.sh_link, CurrentSymEx->Sym.st_name ) + 1; in ELi_LoadObject()
493 ELi_GetStrAdr( ElfHandle, CurrentShdrEx->Shdr.sh_link, in ELi_LoadObject()
532 if( (CurrentShdrEx->Shdr.sh_link != SHN_UNDEF) && in ELi_LoadObject()
533 (CurrentShdrEx->Shdr.sh_link < SHN_LORESERVE)) { in ELi_LoadObject()
534 …CurrentShdrEx->Shdr.sh_link = shdr_table[CurrentShdrEx->Shdr.sh_link]; //Update string section num… in ELi_LoadObject()
536 CurrentShdrEx->Shdr.sh_size = symbol_num * sizeof( Elf32_Sym); in ELi_LoadObject()
537 … CurrentShdrEx->Shdr.sh_info = last_local_symbol_index; //Reference the ARM ELF materials in ELi_LoadObject()
556 if( CurrentShdrEx->Shdr.sh_type == SHT_REL) { in ELi_LoadObject()
558 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
565 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
567 for( j=0; j<(CurrentShdrEx->Shdr.sh_size/CurrentShdrEx->Shdr.sh_entsize); j++) { in ELi_LoadObject()
576 else if( CurrentShdrEx->Shdr.sh_type == SHT_RELA) { in ELi_LoadObject()
578 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
585 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
587 for( j=0; j<(CurrentShdrEx->Shdr.sh_size/CurrentShdrEx->Shdr.sh_entsize); j++) { in ELi_LoadObject()
598 else if( CurrentShdrEx->Shdr.sh_type == SHT_STRTAB) { in ELi_LoadObject()
601 ELi_CopyShStrToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
636 CurrentShdrEx->Shdr.sh_offset = (CurrentShdrEx->loaded_adr - (u32)buf); in ELi_LoadObject()
639 if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in ELi_LoadObject()
644 … CurrentShdrEx->Shdr.sh_link = shdr_table[CurrentShdrEx->Shdr.sh_link]; //Update section number in ELi_LoadObject()
645 … CurrentShdrEx->Shdr.sh_info = shdr_table[CurrentShdrEx->Shdr.sh_info]; //Update section number in ELi_LoadObject()
647 memcpy( (u8*)tmp_buf, &(CurrentShdrEx->Shdr), in ELi_LoadObject()