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

Function link_elf_link_preload_finish

freebsd/kern/link_elf.c:927–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925}
926
927static int
928link_elf_link_preload_finish(linker_file_t lf)
929{
930 elf_file_t ef;
931 int error;
932
933 ef = (elf_file_t) lf;
934 error = relocate_file(ef);
935 if (error == 0)
936 error = preload_protect(ef, VM_PROT_NONE);
937 if (error != 0)
938 return (error);
939 (void)link_elf_preload_parse_symbols(ef);
940
941 return (link_elf_link_common_finish(lf));
942}
943
944static int
945link_elf_load_file(linker_class_t cls, const char* filename,

Callers

nothing calls this directly

Calls 4

preload_protectFunction · 0.85
relocate_fileFunction · 0.70

Tested by

no test coverage detected