| 1250 | } |
| 1251 | |
| 1252 | static Elf_Addr |
| 1253 | findbase(elf_file_t ef, int sec) |
| 1254 | { |
| 1255 | int i; |
| 1256 | Elf_Addr base = 0; |
| 1257 | |
| 1258 | for (i = 0; i < ef->nprogtab; i++) { |
| 1259 | if (sec == ef->progtab[i].sec) { |
| 1260 | base = (Elf_Addr)ef->progtab[i].addr; |
| 1261 | break; |
| 1262 | } |
| 1263 | } |
| 1264 | return base; |
| 1265 | } |
| 1266 | |
| 1267 | static int |
| 1268 | relocate_file(elf_file_t ef) |
no outgoing calls
no test coverage detected