Lines Matching refs:Shdr
341 ELi_GetShdr( ElfHandle, i, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
350 CurrentShdrEx->Shdr.sh_name, in ELi_LoadObject()
356 …th = ELi_GetStrLen( ElfHandle, ElfHandle->CurrentEhdr.e_shstrndx, CurrentShdrEx->Shdr.sh_name) + 1; in ELi_LoadObject()
364 CurrentShdrEx->Shdr.sh_name, in ELi_LoadObject()
377 CurrentShdrEx->Shdr.sh_type = SPECIAL_SECTION_TYPE; in ELi_LoadObject()
378 CurrentShdrEx->Shdr.sh_flags = 0; in ELi_LoadObject()
379 CurrentShdrEx->Shdr.sh_addr = 0; in ELi_LoadObject()
380 CurrentShdrEx->Shdr.sh_offset = 0; in ELi_LoadObject()
381 …CurrentShdrEx->Shdr.sh_size = (section_num - 1)*4; //(ElfHandle->CurrentEhdr.e_shnum)*4; (When old… in ELi_LoadObject()
382 CurrentShdrEx->Shdr.sh_link = 0; in ELi_LoadObject()
383 CurrentShdrEx->Shdr.sh_info = 0; in ELi_LoadObject()
384 CurrentShdrEx->Shdr.sh_addralign = 4; in ELi_LoadObject()
385 CurrentShdrEx->Shdr.sh_entsize = 4; in ELi_LoadObject()
413 (CurrentShdrEx->Shdr.sh_type == SHT_PROGBITS)) { in ELi_LoadObject()
416 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
426 else if( (CurrentShdrEx->Shdr.sh_flags == (SHF_ALLOC | SHF_WRITE))&& in ELi_LoadObject()
427 (CurrentShdrEx->Shdr.sh_type == SHT_NOBITS)) { in ELi_LoadObject()
441 else if( CurrentShdrEx->Shdr.sh_type == SPECIAL_SECTION_TYPE) { in ELi_LoadObject()
444 u32 sh_size = CurrentShdrEx->Shdr.sh_size; in ELi_LoadObject()
459 else if( CurrentShdrEx->Shdr.sh_type >= SHT_LOPROC) { in ELi_LoadObject()
462 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
465 else if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in ELi_LoadObject()
482 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
485 ELi_GetStrAdr( ElfHandle, CurrentShdrEx->Shdr.sh_link, //Get symbol string in ELi_LoadObject()
492 … length = ELi_GetStrLen( ElfHandle, CurrentShdrEx->Shdr.sh_link, CurrentSymEx->Sym.st_name ) + 1; in ELi_LoadObject()
499 ELi_GetStrAdr( ElfHandle, CurrentShdrEx->Shdr.sh_link, in ELi_LoadObject()
538 if( (CurrentShdrEx->Shdr.sh_link != SHN_UNDEF) && in ELi_LoadObject()
539 (CurrentShdrEx->Shdr.sh_link < SHN_LORESERVE)) { in ELi_LoadObject()
540 …CurrentShdrEx->Shdr.sh_link = shdr_table[CurrentShdrEx->Shdr.sh_link]; //Update string section num… in ELi_LoadObject()
542 CurrentShdrEx->Shdr.sh_size = symbol_num * sizeof( Elf32_Sym); in ELi_LoadObject()
543 … CurrentShdrEx->Shdr.sh_info = last_local_symbol_index; //Reference the ARM ELF materials in ELi_LoadObject()
562 if( CurrentShdrEx->Shdr.sh_type == SHT_REL) { in ELi_LoadObject()
564 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
571 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
573 for( j=0; j<(CurrentShdrEx->Shdr.sh_size/CurrentShdrEx->Shdr.sh_entsize); j++) { in ELi_LoadObject()
582 else if( CurrentShdrEx->Shdr.sh_type == SHT_RELA) { in ELi_LoadObject()
584 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
591 CurrentShdrEx->Shdr.sh_link); in ELi_LoadObject()
593 for( j=0; j<(CurrentShdrEx->Shdr.sh_size/CurrentShdrEx->Shdr.sh_entsize); j++) { in ELi_LoadObject()
604 else if( CurrentShdrEx->Shdr.sh_type == SHT_STRTAB) { in ELi_LoadObject()
607 ELi_CopyShStrToBuffer( ElfHandle, &(CurrentShdrEx->Shdr)); in ELi_LoadObject()
642 CurrentShdrEx->Shdr.sh_offset = (CurrentShdrEx->loaded_adr - (u32)buf); in ELi_LoadObject()
645 if( CurrentShdrEx->Shdr.sh_type == SHT_SYMTAB) { in ELi_LoadObject()
650 … CurrentShdrEx->Shdr.sh_link = shdr_table[CurrentShdrEx->Shdr.sh_link]; //Update section number in ELi_LoadObject()
651 … CurrentShdrEx->Shdr.sh_info = shdr_table[CurrentShdrEx->Shdr.sh_info]; //Update section number in ELi_LoadObject()
653 memcpy( (u8*)tmp_buf, &(CurrentShdrEx->Shdr), in ELi_LoadObject()