diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-04-17 21:54:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-04-17 21:54:11 +0000 |
commit | 338053615c6e1504a290355c66e105826ae9e51f (patch) | |
tree | bfae7b9aed037b55304ce3cb2059c75975edd8b8 /ldso/include | |
parent | c9b4265653c0b77872fb40e029de396fe8efd6d3 (diff) |
fix ld.so.cache handling on no-mmu setups
Diffstat (limited to 'ldso/include')
-rw-r--r-- | ldso/include/dl-defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ldso/include/dl-defs.h b/ldso/include/dl-defs.h index eb59ca28b..6a94ee9d9 100644 --- a/ldso/include/dl-defs.h +++ b/ldso/include/dl-defs.h @@ -62,6 +62,12 @@ typedef struct { int sooffset; int liboffset; } libentry_t; + +#ifdef __ARCH_USE_MMU__ +#define LDSO_CACHE_MMAP_FLAGS (MAP_SHARED) +#else +#define LDSO_CACHE_MMAP_FLAGS (MAP_PRIVATE) +#endif #endif /* __LDSO_CACHE_SUPPORT__ */ #endif |