Since clang modifies .o files in place, use MAP_PRIVATE as it seems

to fix the issues we run into on darwin even though the docs don't
seems to say it will.

llvm-svn: 147835
This commit is contained in:
Greg Clayton 2012-01-10 02:53:13 +00:00
parent 99e6e2f6f0
commit 7d7850af64
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ DataBufferMemoryMap::MemoryMapFromFileDescriptor (int fd,
if (writeable)
prot |= PROT_WRITE;
int flags = MAP_SHARED;
int flags = MAP_PRIVATE;
if (fd_is_file)
flags |= MAP_FILE;