Function report |
Source Code:kernel\module.c |
Create Date:2022-07-28 10:58:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Change all symbols so that st_value encodes the pointer directly.
Proto:static int simplify_symbols(struct module *mod, const struct load_info *info)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct module * | mod | |
const struct load_info * | info |
2302 | ret = 0 |
2309 | Case st_shndx == SHN_COMMON |
2317 | pr_warn("%s: please compile with -fno-common\n", Unique handle for this module ) |
2320 | Break |
2328 | Case st_shndx == SHN_LIVEPATCH |
2330 | Break |
2332 | Case st_shndx == special section indexes |
2333 | ksym = resolve_symbol_wait(mod, info, name) |
2336 | st_value = kernel_symbol_value(ksym) |
2337 | Break |
2341 | If Not ksym && ELF_ST_BIND(st_info) == STB_WEAK Then Break |
2345 | pr_warn("%s: Unknown symbol %s (err %d)\n", Unique handle for this module , name, ret) |
2347 | Break |
2349 | Default |
2360 | Return ret |
Name | Describe |
---|---|
load_module | Allocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |