summaryrefslogtreecommitdiff
path: root/arch/parisc/include
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2009-03-15 20:44:25 (GMT)
committerKyle McMartin <kyle@mcmartin.ca>2009-04-02 04:16:24 (GMT)
commitbf589a349b9a41ea202ddb8115b18f543b944bfd (patch)
treeb7b629d5f94b331ccf4b7c114c783675696d4dfd /arch/parisc/include
parentbb7350194130ae6bd3fdec16fe1b7597c1c0bb8d (diff)
downloadlinux-fsl-qoriq-bf589a349b9a41ea202ddb8115b18f543b944bfd.tar.xz
parisc: Move kernel Elf_Fdesc define to <asm/elf.h>
elf.h probably won't be exported to userspace, but play it safe and cram it in a #ifdef __KERNEL__ guard. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r--arch/parisc/include/asm/elf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/elf.h b/arch/parisc/include/asm/elf.h
index 7fa6757..9c802eb 100644
--- a/arch/parisc/include/asm/elf.h
+++ b/arch/parisc/include/asm/elf.h
@@ -168,6 +168,16 @@ typedef struct elf64_fdesc {
__u64 gp;
} Elf64_Fdesc;
+#ifdef __KERNEL__
+
+#ifdef CONFIG_64BIT
+#define Elf_Fdesc Elf64_Fdesc
+#else
+#define Elf_Fdesc Elf32_Fdesc
+#endif /*CONFIG_64BIT*/
+
+#endif /*__KERNEL__*/
+
/* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */
#define PT_HP_TLS (PT_LOOS + 0x0)