From 6b179b9985002f5a9515c85e841d79e0e569239f Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 8 Jan 2009 15:53:41 +0000 Subject: [PATCH] when calling mmap() with MAP_ANON, the fd argument should be -1 might fix #2925 --- rts/Linker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Linker.c b/rts/Linker.c index ef12e3e..ae1da56 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 { -- 1.7.10.4