正在加载图片...
Linux对可执行文件格式的管理 。可执行文件格式的描述符:linux binfmt This structure defines the functions that are used to load the binary formats that ◆linux accepts. */ struct linux_binfmt{ struct list_head Ih; struct module "module; int(t1 oad_binary)(struct linux_binprm◆,struct pt_regs◆regs): int(1 oad_shlib)(struct file◆): int (*core_dump)(1ong signr,struct pt_regs *regs, struct file *file,unsigned long limit); unsigned long min_coredump;minimal dump size int hasvdso: ,load_binary:通过读取存放在可执行文件中的信息为当前进程 建立一个新的进程上下文 ~1 oad_sh1ib:动态的把一个共享库绑定到一个已经在运行的进程 ,core_dump:把当前进程的上下文保存到名为core的文件中 陈香兰(x1 anchenoustc.edu.cn)(升异款应Limx#作系纯分折0 hapter-2 Linux中径开 November 4.2014 10/21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Linux对可执行文件格式的管理 可执行文件格式的描述符:linux_binfmt . . /* * This structure defines the functions that are used to load the binary formats that * linux accepts. */ struct linux_binfmt { struct list_head lh; struct module *module; int (*load_binary)(struct linux_binprm *, struct pt_regs * regs); int (*load_shlib)(struct file *); int (*core_dump)(long signr, struct pt_regs *regs, struct file *file, unsigned long limit); unsigned long min_coredump; /* minimal dump size */ int hasvdso; }; ▶ load_binary: 通过读取存放在可执行文件中的信息为当前进程 建立一个新的进程上下文 ▶ load_shlib: 动态的把一个共享库绑定到一个已经在运行的进程 ▶ core_dump:把当前进程的上下文保存到名为core的文件中 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室 Linux操作系统分析Chapter 9-2 Linux中程序的执行 @计算机学院嵌入式系统实验室@苏州研究院中国科学技术大学Fall 2014) November 4, 2014 10 / 21
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有