1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_FLAT_H
20 #define _UAPI_LINUX_FLAT_H
21 #define FLAT_VERSION 0x00000004L
22 #define MAX_SHARED_LIBS (1)
23 struct flat_hdr {
24   char magic[4];
25   unsigned long rev;
26   unsigned long entry;
27   unsigned long data_start;
28   unsigned long data_end;
29   unsigned long bss_end;
30   unsigned long stack_size;
31   unsigned long reloc_start;
32   unsigned long reloc_count;
33   unsigned long flags;
34   unsigned long build_date;
35   unsigned long filler[5];
36 };
37 #define FLAT_FLAG_RAM 0x0001
38 #define FLAT_FLAG_GOTPIC 0x0002
39 #define FLAT_FLAG_GZIP 0x0004
40 #define FLAT_FLAG_GZDATA 0x0008
41 #define FLAT_FLAG_KTRACE 0x0010
42 #endif
43