diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-01-08 15:53:41 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-01-08 15:53:41 +0000 |
commit | 6b179b9985002f5a9515c85e841d79e0e569239f (patch) | |
tree | 038be4dff27bd498abaf8ef8f123e66c2035ec8b /rts | |
parent | 2bfdf5035220814a8ed0688ac3c2cc44d911299f (diff) | |
download | haskell-6b179b9985002f5a9515c85e841d79e0e569239f.tar.gz |
when calling mmap() with MAP_ANON, the fd argument should be -1
might fix #2925
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Linker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index ef12e3e9aa..ae1da56aac 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -1744,7 +1744,7 @@ static int ocAllocateSymbolExtras( ObjectCode* oc, int count, int first ) if( m > n ) // we need to allocate more pages { oc->symbol_extras = mmapForLinker(sizeof(SymbolExtra) * count, - MAP_ANONYMOUS, 0); + MAP_ANONYMOUS, -1); } else { |