Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update size with this section: return offset.

Proto:static long get_offset(struct module *mod, unsigned int *size, Elf32_Shdr *sechdr, unsigned int section)

Type:long

Parameter:

TypeParameterName
struct module *mod
unsigned int *size
Elf32_Shdr *sechdr
unsigned intsection
2410  size += Additional bytes needed by arch in front of individual sections
2411  ret = @a is a power of 2 value ( * size, sh_addralign ? : 1)
2412  size = ret + sh_size
2413  Return ret
Caller
NameDescribe
layout_sectionsLay out the SHF_ALLOC sections in a way not dissimilar to how ldmight -- code, read-only data, read-write data, small data. Tallysizes, and place the offsets into sh_entsize fields: high bit means itbelongs in init.