diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2006-01-08 10:03:35 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 05:13:58 +0100 |
commit | dda6ebde96044e9b5f1b14588659b39b4e6c08e7 (patch) | |
tree | c06bba58d2623784c88acc321137c34b7be16335 /drivers/mfd | |
parent | [PATCH] drivers/connector/cn_proc.c typos (diff) | |
download | linux-dda6ebde96044e9b5f1b14588659b39b4e6c08e7.tar.xz linux-dda6ebde96044e9b5f1b14588659b39b4e6c08e7.zip |
[PATCH] Fix handling of ELF segments with zero filesize
mmap() returns -EINVAL if given a zero length, and thus elf_map() in
binfmt_elf.c does likewise if it attempts to map a (page-aligned) ELF
segment with zero filesize. Such a situation never arises with the default
linker scripts, but there's nothing inherently wrong with zero-filesize
(but non-zero memsize) ELF segments. Custom linker scripts can generate
them, and the kernel should be able to map them; this patch makes it so.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions