[CRIU] [PATCH 1/4] arch: x86 -- Add elf.h header

James Bottomley jbottomley at parallels.com
Mon Apr 22 14:44:27 EDT 2013


On Tue, 2013-04-16 at 13:26 +0400, Cyrill Gorcunov wrote:
> --- /dev/null
> +++ b/arch/x86/include/asm/elf.h
> @@ -0,0 +1,501 @@
> +#ifndef __CR_ELF_H__
> +#define __CR_ELF_H__
> +
> +#include "asm/int.h"
> +
> +/* Segment types */
> +#define PT_NULL                0
> +#define PT_LOAD                1
> +#define PT_DYNAMIC     2
> +#define PT_INTERP      3
> +#define PT_NOTE                4
> +#define PT_SHLIB       5
> +#define PT_PHDR                6
> +#define PT_TLS         7
> +#define PT_LOOS                0x60000000
> +#define PT_HIOS                0x6fffffff
> +#define PT_LOPROC      0x70000000
> +#define PT_HIPROC      0x7fffffff
> +#define PT_GNU_EH_FRAME        0x6474e550
> +
> +/* ELF file types */
> +#define ET_NONE                0
> +#define ET_REL         1
> +#define ET_EXEC                2
> +#define ET_DYN         3
> +#define ET_CORE                4
> +#define ET_CKPT                5
> +#define ET_LOPROC      0xff00
> +#define ET_HIPROC      0xffff
> +
> +/* ELF machine types */
> +#define EM_NONE                0
> +#define EM_M32         1
> +#define EM_SPARC       2
> +#define EM_386         3
> +#define EM_68K         4
> +#define EM_88K         5
[...]

This is all in /usr/include/elf.h isn't it?  Why the need to duplicate
all this information?

James




More information about the CRIU mailing list