Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_elf.c Create Date:2022-07-28 20:28:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:total_mapping_size

Proto:static unsigned long total_mapping_size(const struct elf64_phdr *cmds, int nr)

Type:unsigned long

Parameter:

TypeParameterName
const struct elf64_phdr *cmds
intnr
391  first_idx = -1 , last_idx = -1
393  When i < nr cycle
394  If p_type == PT_LOAD Then
395  last_idx = i
396  If first_idx == -1 Then first_idx = i
400  If first_idx == -1 Then Return 0
403  Return Segment virtual address + Segment size in memory - ELF_PAGESTART( Segment virtual address )
Caller
NameDescribe
load_elf_interpThis is much more generalized than the library routine read function,so we keep this separate. Technically the library read functionis only provided so that we can read a.out libraries that havean ELF header
load_elf_binary