Header by Index functions
| 184 | // Header by Index functions |
| 185 | // |
| 186 | STATIC |
| 187 | Elf_Shdr* |
| 188 | GetShdrByIndex ( |
| 189 | UINT32 Num |
| 190 | ) |
| 191 | { |
| 192 | if (Num >= mEhdr->e_shnum) { |
| 193 | Error (NULL, 0, 3000, "Invalid", "GetShdrByIndex: Index %u is too high.", Num); |
| 194 | exit(EXIT_FAILURE); |
| 195 | } |
| 196 | |
| 197 | return (Elf_Shdr*)((UINT8*)mShdrBase + Num * mEhdr->e_shentsize); |
| 198 | } |
| 199 | |
| 200 | STATIC |
| 201 | Elf_Phdr* |
no test coverage detected