Header by Index functions
| 199 | // Header by Index functions |
| 200 | // |
| 201 | STATIC |
| 202 | Elf_Shdr* |
| 203 | GetShdrByIndex ( |
| 204 | UINT32 Num |
| 205 | ) |
| 206 | { |
| 207 | if (Num >= mEhdr->e_shnum) { |
| 208 | Error (NULL, 0, 3000, "Invalid", "GetShdrByIndex: Index %u is too high.", Num); |
| 209 | exit(EXIT_FAILURE); |
| 210 | } |
| 211 | |
| 212 | return (Elf_Shdr*)((UINT8*)mShdrBase + Num * mEhdr->e_shentsize); |
| 213 | } |
| 214 | |
| 215 | STATIC |
| 216 | UINT32 |
no test coverage detected