summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-04-20 13:15:16 +0200
committerRich Felker <dalias@aerifal.cx>2016-07-03 16:12:12 -0400
commitb921e0fd1fc9840fdfc6dde27dc7453047437f0f (patch)
treee70935cc839085ce9dbac28bf06daaca71f04a16
parent35b58194dc065dd7daec815ba74372a71f9654a4 (diff)
downloadmusl-b921e0fd1fc9840fdfc6dde27dc7453047437f0f.tar.gz
update elf.h with powerpc64 elfv2 abi related macros
see https://sourceware.org/ml/libc-alpha/2013-11/msg00315.html https://sourceware.org/ml/libc-alpha/2013-11/msg00314.html
-rw-r--r--include/elf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/elf.h b/include/elf.h
index 55d8cb28..1bfe0168 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -2032,14 +2032,20 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_PPC64_REL16_HI 251
#define R_PPC64_REL16_HA 252
+#define EF_PPC64_ABI 3
#define DT_PPC64_GLINK (DT_LOPROC + 0)
#define DT_PPC64_OPD (DT_LOPROC + 1)
#define DT_PPC64_OPDSZ (DT_LOPROC + 2)
-#define DT_PPC64_NUM 3
-
+#define DT_PPC64_OPT (DT_LOPROC + 3)
+#define DT_PPC64_NUM 4
+#define PPC64_OPT_TLS 1
+#define PPC64_OPT_MULTI_TOC 2
+#define STO_PPC64_LOCAL_BIT 5
+#define STO_PPC64_LOCAL_MASK 0xe0
+#define PPC64_LOCAL_ENTRY_OFFSET(x) (1 << (((x)&0xe0)>>5) & 0xfc)
#define EF_ARM_RELEXEC 0x01