aboutsummaryrefslogtreecommitdiff
path: root/include/elf.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2014-05-29 09:12:19 -0500
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:40 +0200
commitd90b94cd78af672cdfd52dc3789ab249534c2f40 (patch)
tree447f45edd3c9ddaef66ae7e3d58c60d98595889d /include/elf.h
parenta721d390b302a383a99224e08d12caad2e97d7ab (diff)
target-ppc: Support little-endian PPC64 in user mode.
Look at ELF header to determine ABI version on PPC64. This is required for executing the first instruction correctly. Also print correct machine name in uname() system call. Signed-off-by: Doug Kwan <dougkwan@google.com> Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/elf.h')
-rw-r--r--include/elf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 1599ab22d8..e88d52fd76 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -561,6 +561,11 @@ typedef struct {
#define SHF_ALPHA_GPREL 0x10000000
+/* PowerPC specific definitions. */
+
+/* Processor specific flags for the ELF header e_flags field. */
+#define EF_PPC64_ABI 0x3
+
/* PowerPC relocations defined by the ABIs */
#define R_PPC_NONE 0
#define R_PPC_ADDR32 1 /* 32bit absolute address */