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

Function link_elf_ireloc

freebsd/kern/link_elf.c:1909–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1907}
1908
1909void
1910link_elf_ireloc(caddr_t kmdp)
1911{
1912 struct elf_file eff;
1913 elf_file_t ef;
1914
1915 ef = &eff;
1916
1917 bzero_early(ef, sizeof(*ef));
1918
1919 ef->modptr = kmdp;
1920 ef->dynamic = (Elf_Dyn *)&_DYNAMIC;
1921
1922#ifdef RELOCATABLE_KERNEL
1923 ef->address = (caddr_t) (__startkernel - KERNBASE);
1924#else
1925 ef->address = 0;
1926#endif
1927 parse_dynamic(ef);
1928
1929 link_elf_preload_parse_symbols(ef);
1930 relocate_file1(ef, elf_lookup_ifunc, elf_reloc, true);
1931}
1932
1933#if defined(__aarch64__) || defined(__amd64__)
1934void

Callers 3

init386Function · 0.85
hammer_timeFunction · 0.85
initarmFunction · 0.85

Calls 3

parse_dynamicFunction · 0.85
relocate_file1Function · 0.85

Tested by

no test coverage detected