aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/elf-fdpic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/elf-fdpic.h')
-rw-r--r--include/linux/elf-fdpic.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/include/linux/elf-fdpic.h b/include/linux/elf-fdpic.h
index 7cd2e80cebc8..386440317b0c 100644
--- a/include/linux/elf-fdpic.h
+++ b/include/linux/elf-fdpic.h
@@ -1,4 +1,4 @@
1/* elf-fdpic.h: FDPIC ELF load map 1/* FDPIC ELF load map
2 * 2 *
3 * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved. 3 * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com) 4 * Written by David Howells (dhowells@redhat.com)
@@ -12,24 +12,7 @@
12#ifndef _LINUX_ELF_FDPIC_H 12#ifndef _LINUX_ELF_FDPIC_H
13#define _LINUX_ELF_FDPIC_H 13#define _LINUX_ELF_FDPIC_H
14 14
15#include <linux/elf.h> 15#include <uapi/linux/elf-fdpic.h>
16
17#define PT_GNU_STACK (PT_LOOS + 0x474e551)
18
19/* segment mappings for ELF FDPIC libraries/executables/interpreters */
20struct elf32_fdpic_loadseg {
21 Elf32_Addr addr; /* core address to which mapped */
22 Elf32_Addr p_vaddr; /* VMA recorded in file */
23 Elf32_Word p_memsz; /* allocation size recorded in file */
24};
25
26struct elf32_fdpic_loadmap {
27 Elf32_Half version; /* version of these structures, just in case... */
28 Elf32_Half nsegs; /* number of segments */
29 struct elf32_fdpic_loadseg segs[];
30};
31
32#define ELF32_FDPIC_LOADMAP_VERSION 0x0000
33 16
34/* 17/*
35 * binfmt binary parameters structure 18 * binfmt binary parameters structure
@@ -58,13 +41,11 @@ struct elf_fdpic_params {
58#define ELF_FDPIC_FLAG_PRESENT 0x80000000 /* T if this object is present */ 41#define ELF_FDPIC_FLAG_PRESENT 0x80000000 /* T if this object is present */
59}; 42};
60 43
61#ifdef __KERNEL__
62#ifdef CONFIG_MMU 44#ifdef CONFIG_MMU
63extern void elf_fdpic_arch_lay_out_mm(struct elf_fdpic_params *exec_params, 45extern void elf_fdpic_arch_lay_out_mm(struct elf_fdpic_params *exec_params,
64 struct elf_fdpic_params *interp_params, 46 struct elf_fdpic_params *interp_params,
65 unsigned long *start_stack, 47 unsigned long *start_stack,
66 unsigned long *start_brk); 48 unsigned long *start_brk);
67#endif 49#endif
68#endif /* __KERNEL__ */
69 50
70#endif /* _LINUX_ELF_FDPIC_H */ 51#endif /* _LINUX_ELF_FDPIC_H */