Lines Matching refs:i

40     int i;  in relocate_32bitbios()  local
46 for ( i = 0; i < ehdr->e_shnum; i++ ) in relocate_32bitbios()
49 shdr[i].sh_addr = (Elf32_Addr)&elfarray[shdr[i].sh_offset]; in relocate_32bitbios()
52 if ( shdr[i].sh_addralign == 0 ) in relocate_32bitbios()
53 shdr[i].sh_addralign = 1; in relocate_32bitbios()
56 if ( shdr[i].sh_flags & SHF_ALLOC ) in relocate_32bitbios()
58 uint32_t mask = shdr[i].sh_addralign - 1; in relocate_32bitbios()
60 reloc_off += shdr[i].sh_size; in relocate_32bitbios()
79 for ( i = 0; i < ehdr->e_shnum; i++ ) in relocate_32bitbios()
81 uint32_t mask = shdr[i].sh_addralign - 1; in relocate_32bitbios()
84 if ( !(shdr[i].sh_flags & SHF_ALLOC) ) in relocate_32bitbios()
89 if ( shdr[i].sh_type == SHT_NOBITS ) in relocate_32bitbios()
90 memset(&highbiosarea[reloc_off], 0, shdr[i].sh_size); in relocate_32bitbios()
92 memcpy(&highbiosarea[reloc_off], (void *)shdr[i].sh_addr, in relocate_32bitbios()
93 shdr[i].sh_size); in relocate_32bitbios()
96 shdr[i].sh_addr = (Elf32_Addr)&highbiosarea[reloc_off]; in relocate_32bitbios()
97 reloc_off += shdr[i].sh_size; in relocate_32bitbios()
104 for ( i = 0; i < ehdr->e_shnum; i++ ) in relocate_32bitbios()
112 if ( shdr[i].sh_type == SHT_RELA ) in relocate_32bitbios()
115 if ( shdr[i].sh_type != SHT_REL ) in relocate_32bitbios()
118 syms = (Elf32_Sym *)shdr[shdr[i].sh_link].sh_addr; in relocate_32bitbios()
119 rels = (Elf32_Rel *)shdr[i].sh_addr; in relocate_32bitbios()
120 code = (char *)shdr[shdr[i].sh_info].sh_addr; in relocate_32bitbios()
122 for ( j = 0; j < shdr[i].sh_size / sizeof(Elf32_Rel); j++ ) in relocate_32bitbios()