Lines Matching refs:CurrentShdrEx

39     ELShdrEx*   CurrentShdrEx;  local
71 CurrentShdrEx = &DmyShdrEx;
73 CurrentShdrEx->next = (void*)(malloc( sizeof(ELShdrEx)));
74 CurrentShdrEx = (ELShdrEx*)(CurrentShdrEx->next);
75 memset( CurrentShdrEx, 0, sizeof(ELShdrEx)); //Clear zero
79 CurrentShdrEx->debug_flag = 1;
82 CurrentShdrEx->debug_flag = 0;
87 ELi_GetShdr( ElfHandle, i, &(CurrentShdrEx->Shdr));
92 CurrentShdrEx->str = (char*)malloc( 128); //Get 128 character buffer
94 CurrentShdrEx->Shdr.sh_name,
95 CurrentShdrEx->str, 128);
100 …length = ELi_GetStrLen( ElfHandle, ElfHandle->CurrentEhdr.e_shstrndx, CurrentShdrEx->Shdr.sh_name …
102 CurrentShdrEx->str = (char*)malloc(length);
103 if(CurrentShdrEx->str == 0)
108 CurrentShdrEx->Shdr.sh_name,
109 CurrentShdrEx->str, length);
114 special_sect_name = CurrentShdrEx->Shdr.sh_size;
120 CurrentShdrEx->next = (void*)(malloc( sizeof(ELShdrEx)));
121 CurrentShdrEx = (ELShdrEx*)(CurrentShdrEx->next);
122 memset( CurrentShdrEx, 0, sizeof(ELShdrEx)); //Clear zero
123 CurrentShdrEx->Shdr.sh_name = special_sect_name;
124 CurrentShdrEx->Shdr.sh_type = SPECIAL_SECTION_TYPE;
125 CurrentShdrEx->Shdr.sh_flags = 0;
126 CurrentShdrEx->Shdr.sh_addr = 0;
127 CurrentShdrEx->Shdr.sh_offset = 0;
128CurrentShdrEx->Shdr.sh_size = (stripped_section_num)*4; //(ElfHandle->CurrentEhdr.e_shnum)*4; (Whe…
129 CurrentShdrEx->Shdr.sh_link = 0;
130 CurrentShdrEx->Shdr.sh_info = 0;
131 CurrentShdrEx->Shdr.sh_addralign = 4;
132 CurrentShdrEx->Shdr.sh_entsize = 4;
134 CurrentShdrEx->str = (char*)malloc( 128);
136 CurrentShdrEx->str = (char*)malloc( strlen(SPECIAL_SECTION_NAME) + 1 );
137 if(CurrentShdrEx->str == 0)
142 strcpy( CurrentShdrEx->str, SPECIAL_SECTION_NAME);
144 CurrentShdrEx->next = NULL;
153 CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, i);
156 if( CurrentShdrEx->Shdr.sh_type == SPECIAL_SECTION_TYPE) {
159 u32 sh_size = CurrentShdrEx->Shdr.sh_size;
169 CurrentShdrEx->loaded_adr = load_start;
175 … if( CurrentShdrEx->Shdr.sh_type != SHT_NULL) { //NULL section (section 0) has no content
177 CurrentShdrEx->loaded_adr = (u32)
178 ELi_CopySectionToBuffer( ElfHandle, &(CurrentShdrEx->Shdr));
182 if( (CurrentShdrEx->Shdr.sh_type == SHT_STRTAB)&&
186 CurrentShdrEx->Shdr.sh_size += (strlen( SPECIAL_SECTION_NAME) + 1);
213 CurrentShdrEx = ELi_GetShdrExfromList( ElfHandle->ShdrEx, i);
215 if( CurrentShdrEx->loaded_adr != 0) {
216 CurrentShdrEx->Shdr.sh_offset = (CurrentShdrEx->loaded_adr - (u32)buf);
219 memcpy( (u8*)tmp_buf, &(CurrentShdrEx->Shdr),
240 CurrentShdrEx = ElfHandle->ShdrEx;
241 if( CurrentShdrEx) {
243 FwdShdrEx = CurrentShdrEx;
244 CurrentShdrEx = CurrentShdrEx->next;
247 }while( CurrentShdrEx != NULL);