David Gibson dda6ebde96 [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>
2006-01-08 20:13:58 -08:00
..
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2006-01-08 20:13:58 -08:00
2005-11-08 16:54:53 +01:00
2005-10-04 13:22:01 -07:00
2006-01-08 20:13:58 -08:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-06 08:33:20 -08:00
2005-11-07 07:54:06 -08:00
2006-01-06 08:33:59 -08:00
2006-01-06 14:58:56 -05:00
2006-01-08 20:13:58 -08:00
2006-01-06 14:58:56 -05:00
2005-05-05 16:36:47 -07:00
2005-11-07 07:54:06 -08:00
2006-01-06 08:33:53 -08:00
2006-01-03 13:27:11 +01:00
2006-01-08 20:13:58 -08:00
2006-01-08 20:13:48 -08:00
2005-05-05 16:36:47 -07:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-12 16:01:02 -07:00
2006-01-08 20:13:58 -08:00
2005-10-29 21:40:39 -07:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:12:40 -08:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:32 -08:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:13:58 -08:00
2006-01-06 14:58:54 -05:00
2006-01-08 20:12:40 -08:00
2005-11-07 07:54:06 -08:00
2006-01-08 20:13:56 -08:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:22 -07:00
2006-01-08 20:13:56 -08:00
2005-11-07 18:18:11 -08:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:53:39 -08:00
2005-04-16 15:20:36 -07:00
2005-09-09 13:57:55 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00