]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] uclinux: use MAP_PRIVATE when mmaping code regions in flat binary loader
authorGreg Ungerer <gerg@snapgear.com>
Fri, 2 Sep 2005 00:42:52 +0000 (10:42 +1000)
committerLinus Torvalds <torvalds@evo.osdl.org>
Fri, 2 Sep 2005 07:57:31 +0000 (00:57 -0700)
commit213b24c93b6c43d96973b9db453bf845c97bbe18
treed47aea7e40411d997392b1ce12cc82fd02908ec8
parent03a002e783b71517a5203e681f84a2719e9cec0e
[PATCH] uclinux: use MAP_PRIVATE when mmaping code regions in flat binary loader

Use MAP_PRIVATE when calling mmap to get memory for the code region.
The flat loader was using MAP_SHARED, but underlying changes to the
MMUless mmap means this is now wrong.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/binfmt_flat.c