elf_loader.h

来自「自己正在开发的一个ARM9的操作系统。详细信息请访问www.another-pr」· C头文件 代码 · 共 43 行

H
43
字号
/* *	ApOS (Another Project software for s3c2410) *	 *	This program is free software; you can redistribute it and/or modify *	it under the terms of the GNU General Public License version 2 as *	published by the Free Software Foundation. *			 *						Copyright caiyuqing * */#ifndef _ELF_LOADER_H#define NOT_ELF_FILE(elf32hdr) ((elf32hdr)->e_ident[EI_MAG0]!=0x7f|| \	(elf32hdr)->e_ident[EI_MAG1]!='E'|| \	(elf32hdr)->e_ident[EI_MAG2]!='L'|| \	(elf32hdr)->e_ident[EI_MAG3]!='F')	#define NOT_EXEC_FILE(elf32hdr) ((elf32hdr)->e_type!=ET_EXEC)#define NOT_ARM_PLATFORM(elf32hdr) ((elf32hdr)->e_machine!=EM_ARM)#define VERSION_ERROR(elf32hdr) ((elf32hdr)->e_version!=EV_CURRENT)#define NOT_32BIT(elf32hdr) ((elf32hdr)->e_ident[EI_CLASS]!=ELFCLASS32)#define NOT_LITTLE_ENDIAN(elf32hdr) ((elf32hdr)->e_ident[EI_DATA]!=ELFDATA2LSB)struct elf_loader_obj{	unsigned int*	elf_file_addr_base;	Elf32_Ehdr*	elf32_header;	Elf32_Shdr*	section_header_table;	Elf32_Phdr*	programe_header_table;		Elf32_Shdr*	current_section_header;	Elf32_Phdr*	current_programe_header;	unsigned int*	current_section;	unsigned int*	string_section;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?