aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-07-17 04:56:34 -0700
committerShih-wei Liao <sliao@google.com>2012-07-17 04:56:34 -0700
commit7f57ba71d8512278cbf5fa70e478a5458b36407b (patch)
treeb1101f62d4372e9ddc5761bb0c821d0cbd6f96c3
parent62da23e111dd065e65fd421837443055be0042b4 (diff)
downloadexternal_llvm-7f57ba71d8512278cbf5fa70e478a5458b36407b.zip
external_llvm-7f57ba71d8512278cbf5fa70e478a5458b36407b.tar.gz
external_llvm-7f57ba71d8512278cbf5fa70e478a5458b36407b.tar.bz2
Add ELF constants for MCLinker.
For dynamic sections and -z options. Change-Id: Ic324caef95810cd0882a4ba88189cb1204752287
-rw-r--r--include/llvm/Support/ELF.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index fdd889b..1f5d344 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -1020,6 +1020,9 @@ enum {
PT_SUNW_EH_FRAME = 0x6474e550,
PT_SUNW_UNWIND = 0x6464e550,
+ PT_GNU_STACK = 0x6474e551, // Stack flags.
+ 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.
@@ -1095,6 +1098,14 @@ enum {
DT_PREINIT_ARRAY = 32, // Pointer to array of preinit functions.
DT_PREINIT_ARRAYSZ = 33, // Size of the DT_PREINIT_ARRAY array.
+ DT_RELACOUNT = 0X6FFFFFF9, // ELF32_Rela count.
+ DT_RELCOUNT = 0X6FFFFFFA, // ELF32_Rel count.
+ DT_FLAGS_1 = 0X6FFFFFFB, // Flags_1.
+ DT_VERDEF = 0X6FFFFFFC, // The address of the version definition table.
+ DT_VERDEFNUM = 0X6FFFFFFD, // The number of entries in DT_VERDEF.
+ DT_VERNEED = 0X6FFFFFFE, // The address of the version Dependency table.
+ DT_VERNEEDNUM = 0X6FFFFFFF, // The number of entries in DT_VERNEED.
+
DT_LOOS = 0x60000000, // Start of environment specific tags.
DT_HIOS = 0x6FFFFFFF, // End of environment specific tags.
DT_LOPROC = 0x70000000, // Start of processor specific tags.
@@ -1137,6 +1148,24 @@ enum {
VER_NEED_CURRENT = 1
};
+// DT_FLAGS_1 values.
+enum {
+ DF_1_NOW = 0x0001,
+ DF_1_GLOBAL = 0x0002,
+ DF_1_GROUP = 0x0004,
+ DF_1_NODELETE = 0x0008,
+ DF_1_LOADFLTR = 0x0010,
+ DF_1_INITFIRST = 0x0020,
+ DF_1_NOOPEN = 0x0040,
+ DF_1_ORIGIN = 0x0080,
+ DF_1_DIRECT = 0x0100,
+ DF_1_TRANS = 0x0200,
+ DF_1_INTERPOSE = 0x0400,
+ DF_1_NODEFLIB = 0x0800,
+ DF_1_NODUMP = 0x1000,
+ DF_1_CONLFAT = 0x2000
+};
+
} // end namespace ELF
} // end namespace llvm