On FreeBSD, try MAP_FIXED if ordinary mmap() fails to give us suitable memory
authorSimon Marlow <marlowsd@gmail.com>
Wed, 10 Dec 2008 11:57:51 +0000 (11:57 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 10 Dec 2008 11:57:51 +0000 (11:57 +0000)
commitd4a17c3a253d02c2ebf2315e71a29cb740278977
tree74854b32d76bf9b1abd47907ad4d37b8071c66bf
parent4d13f3e61e4dc3aaa169bad0b8d67e8256624aee
On FreeBSD, try MAP_FIXED if ordinary mmap() fails to give us suitable memory
This appears to be necessary on FreeBSD.  It might be necessary on
other OSs too, but I'm being cautious because using MAP_FIXED can lead
to crashes by overwriting existing mappings, and we have no (easy) way
to prevent that.
rts/Linker.c