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:make_prot

Proto:static inline int make_prot(unsigned int p_flags)

Type:int

Parameter:

TypeParameterName
unsigned intp_flags
540  prot = 0
542  If p_flags & These constants define the permissions on sections in the programheader, p_flags. Then prot |= page can be read
544  If p_flags & PF_W Then prot |= page can be written
546  If p_flags & PF_X Then prot |= page can be executed
548  Return prot
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