| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 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 | ****************************************************************************/ | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #ifndef _UAPI_LINUX_FLAT_H | 
|  | 20 | #define _UAPI_LINUX_FLAT_H | 
|  | 21 | #define FLAT_VERSION 0x00000004L | 
|  | 22 | #define MAX_SHARED_LIBS (1) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | struct flat_hdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | char magic[4]; | 
|  | 25 | unsigned long rev; | 
|  | 26 | unsigned long entry; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | unsigned long data_start; | 
|  | 28 | unsigned long data_end; | 
|  | 29 | unsigned long bss_end; | 
|  | 30 | unsigned long stack_size; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | unsigned long reloc_start; | 
|  | 32 | unsigned long reloc_count; | 
|  | 33 | unsigned long flags; | 
|  | 34 | unsigned long build_date; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | unsigned long filler[5]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | }; | 
|  | 37 | #define FLAT_FLAG_RAM 0x0001 | 
|  | 38 | #define FLAT_FLAG_GOTPIC 0x0002 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define FLAT_FLAG_GZIP 0x0004 | 
|  | 40 | #define FLAT_FLAG_GZDATA 0x0008 | 
|  | 41 | #define FLAT_FLAG_KTRACE 0x0010 | 
| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 42 | #endif |