diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 21:03:30 -0500 |
commit | dca88ad6915b65f6e037f8c3e632fcd92a70bd88 (patch) | |
tree | a3dcbe53310997dcc37c7d49129c48febef53992 /include/linux/elf.h | |
parent | fed474857efbed79cd390d0aee224231ca718f63 (diff) | |
parent | 1632b9e2a14ce9f4e08faf6c4380431d63319bd3 (diff) |
Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
* 'for-next' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h
UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed
UAPI: Make linux/patchkey.h easier to parse
UAPI: Fix nested __KERNEL__ guards in video/edid.h
UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter
UAPI: Guard linux/cuda.h
UAPI: Guard linux/pmu.h
UAPI: Guard linux/isdn_divertif.h
UAPI: Guard linux/sound.h
UAPI: Rearrange definition of HZ in asm-generic/param.h
UAPI: Make FRV use asm-generic/param.h
UAPI: Make M32R use asm-generic/param.h
UAPI: Make MN10300 use asm-generic/param.h
UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace
UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
Diffstat (limited to 'include/linux/elf.h')
-rw-r--r-- | include/linux/elf.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/elf.h b/include/linux/elf.h index 31f0508d7da7..999b4f52e8e5 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h | |||
@@ -7,15 +7,6 @@ | |||
7 | #include <asm/elf.h> | 7 | #include <asm/elf.h> |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | struct file; | ||
11 | |||
12 | #ifndef elf_read_implies_exec | ||
13 | /* Executables for which elf_read_implies_exec() returns TRUE will | ||
14 | have the READ_IMPLIES_EXEC personality flag set automatically. | ||
15 | Override in asm/elf.h as needed. */ | ||
16 | # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0 | ||
17 | #endif | ||
18 | |||
19 | /* 32-bit ELF base types. */ | 10 | /* 32-bit ELF base types. */ |
20 | typedef __u32 Elf32_Addr; | 11 | typedef __u32 Elf32_Addr; |
21 | typedef __u16 Elf32_Half; | 12 | typedef __u16 Elf32_Half; |
@@ -414,6 +405,13 @@ typedef struct elf64_note { | |||
414 | } Elf64_Nhdr; | 405 | } Elf64_Nhdr; |
415 | 406 | ||
416 | #ifdef __KERNEL__ | 407 | #ifdef __KERNEL__ |
408 | #ifndef elf_read_implies_exec | ||
409 | /* Executables for which elf_read_implies_exec() returns TRUE will | ||
410 | have the READ_IMPLIES_EXEC personality flag set automatically. | ||
411 | Override in asm/elf.h as needed. */ | ||
412 | # define elf_read_implies_exec(ex, have_pt_gnu_stack) 0 | ||
413 | #endif | ||
414 | |||
417 | #if ELF_CLASS == ELFCLASS32 | 415 | #if ELF_CLASS == ELFCLASS32 |
418 | 416 | ||
419 | extern Elf32_Dyn _DYNAMIC []; | 417 | extern Elf32_Dyn _DYNAMIC []; |
@@ -437,6 +435,8 @@ extern Elf64_Dyn _DYNAMIC []; | |||
437 | #endif | 435 | #endif |
438 | 436 | ||
439 | /* Optional callbacks to write extra ELF notes. */ | 437 | /* Optional callbacks to write extra ELF notes. */ |
438 | struct file; | ||
439 | |||
440 | #ifndef ARCH_HAVE_EXTRA_ELF_NOTES | 440 | #ifndef ARCH_HAVE_EXTRA_ELF_NOTES |
441 | static inline int elf_coredump_extra_notes_size(void) { return 0; } | 441 | static inline int elf_coredump_extra_notes_size(void) { return 0; } |
442 | static inline int elf_coredump_extra_notes_write(struct file *file, | 442 | static inline int elf_coredump_extra_notes_write(struct file *file, |