summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-10-31 09:10:56 +0000
committerJames Molloy <james.molloy@arm.com>2012-10-31 09:10:56 +0000
commit296815dccee4f5392855c829b8a9e4a661b83a42 (patch)
tree8458baec03a7cbfa207ae92e8dcafa12ce991dd1 /include/llvm
parent552e7316017e6d3d3ea546a71ace2dc36cd104c8 (diff)
downloadllvm-296815dccee4f5392855c829b8a9e4a661b83a42.tar.gz
llvm-296815dccee4f5392855c829b8a9e4a661b83a42.tar.bz2
llvm-296815dccee4f5392855c829b8a9e4a661b83a42.tar.xz
Add support for ARM segment types PT_ARM_ARCHEXT, PT_ARM_EXIDX and PT_ARM_UNWIND.
Patch by Pete Chou! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/ELF.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index a879723caf..b676e91eba 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -1146,6 +1146,9 @@ enum {
PT_PHDR = 6, // The program header table itself.
PT_TLS = 7, // The thread-local storage template.
PT_LOOS = 0x60000000, // Lowest operating system-specific pt entry type.
+ PT_HIOS = 0x6fffffff, // Highest operating system-specific pt entry type.
+ PT_LOPROC = 0x70000000, // Lowest processor-specific program hdr entry type.
+ PT_HIPROC = 0x7fffffff, // Highest processor-specific program hdr entry type.
// x86-64 program header types.
// These all contain stack unwind tables.
@@ -1156,9 +1159,11 @@ enum {
PT_GNU_STACK = 0x6474e551, // Indicates stack executability.
PT_GNU_RELRO = 0x6474e552, // Read-only after relocation.
- PT_HIOS = 0x6fffffff, // Highest operating system-specific pt entry type.
- PT_LOPROC = 0x70000000, // Lowest processor-specific program hdr entry type.
- PT_HIPROC = 0x7fffffff // Highest processor-specific program hdr entry type.
+ // ARM program header types.
+ PT_ARM_ARCHEXT = 0x70000000, // Platform architecture compatibility information
+ // These all contain stack unwind tables.
+ PT_ARM_EXIDX = 0x70000001,
+ PT_ARM_UNWIND = 0x70000001
};
// Segment flag bits.