blob: e65d15327cff6b349afb6890892b8fe4062acef5 [file] [log] [blame]
Yavor Goulishev9c08e842020-04-29 14:03:33 -07001// Copyright 2017 The Crashpad Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef CRASHPAD_COMPAT_ANDROID_LINUX_ELF_H_
16#define CRASHPAD_COMPAT_ANDROID_LINUX_ELF_H_
17
18#include_next <linux/elf.h>
19
20// Android 5.0.0 (API 21) NDK
21
22#if defined(__i386__) || defined(__x86_64__)
23#if !defined(NT_386_TLS)
24#define NT_386_TLS 0x200
25#endif
26#endif // __i386__ || __x86_64__
27
28#if defined(__ARMEL__) || defined(__aarch64__)
29#if !defined(NT_ARM_VFP)
30#define NT_ARM_VFP 0x400
31#endif
32
33#if !defined(NT_ARM_TLS)
34#define NT_ARM_TLS 0x401
35#endif
36#endif // __ARMEL__ || __aarch64__
37
38#endif // CRASHPAD_COMPAT_ANDROID_LINUX_ELF_H_