1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_LINUX_FLAT_H 7 #define _UAPI_LINUX_FLAT_H 8 #define FLAT_VERSION 0x00000004L 9 #ifdef CONFIG_BINFMT_SHARED_FLAT 10 #define MAX_SHARED_LIBS (4) 11 #else 12 #define MAX_SHARED_LIBS (1) 13 #endif 14 struct flat_hdr { 15 char magic[4]; 16 unsigned long rev; 17 unsigned long entry; 18 unsigned long data_start; 19 unsigned long data_end; 20 unsigned long bss_end; 21 22 unsigned long stack_size; 23 unsigned long reloc_start; 24 unsigned long reloc_count; 25 unsigned long flags; 26 unsigned long build_date; 27 unsigned long filler[5]; 28 }; 29 #define FLAT_FLAG_RAM 0x0001 30 #define FLAT_FLAG_GOTPIC 0x0002 31 #define FLAT_FLAG_GZIP 0x0004 32 #define FLAT_FLAG_GZDATA 0x0008 33 #define FLAT_FLAG_KTRACE 0x0010 34 #endif 35