blob: d2af100eb7cfa90543a960bcb99773916dac7f24 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_LINUX_FLAT_H
20#define _UAPI_LINUX_FLAT_H
21#define FLAT_VERSION 0x00000004L
22#define MAX_SHARED_LIBS (1)
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct flat_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080024 char magic[4];
25 unsigned long rev;
26 unsigned long entry;
Tao Baod7db5942015-01-28 10:07:51 -080027 unsigned long data_start;
28 unsigned long data_end;
29 unsigned long bss_end;
30 unsigned long stack_size;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned long reloc_start;
32 unsigned long reloc_count;
33 unsigned long flags;
34 unsigned long build_date;
Tao Baod7db5942015-01-28 10:07:51 -080035 unsigned long filler[5];
Ben Cheng655a7c02013-10-16 16:09:24 -070036};
37#define FLAT_FLAG_RAM 0x0001
38#define FLAT_FLAG_GOTPIC 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define FLAT_FLAG_GZIP 0x0004
40#define FLAT_FLAG_GZDATA 0x0008
41#define FLAT_FLAG_KTRACE 0x0010
Nick Kralevicha67e4de2013-01-14 11:28:26 -080042#endif