MCPcopy Create free account
hub / github.com/F-Stack/f-stack / findbase

Function findbase

freebsd/kern/link_elf_obj.c:1252–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252static Elf_Addr
1253findbase(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
1267static int
1268relocate_file(elf_file_t ef)

Callers 2

relocate_fileFunction · 0.85
link_elf_reloc_localFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected