diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:22:38 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-11 15:22:38 +0000 |
commit | 780f552a830cc7d27056633650d461fea061efe6 (patch) | |
tree | 6a0cfc91a9676f23174f89ea9472ef3cdea212ff /lib/csu/common.c | |
parent | 3aee1e25609e7b75859e4c4fce88fc3c9b9121db (diff) |
MAP_COPY -> MAP_PRIVATE
Diffstat (limited to 'lib/csu/common.c')
-rw-r--r-- | lib/csu/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/csu/common.c b/lib/csu/common.c index 978ee4a3c70..0d3b5186c69 100644 --- a/lib/csu/common.c +++ b/lib/csu/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.5 1999/12/09 18:10:24 espie Exp $ */ +/* $OpenBSD: common.c,v 1.6 2001/05/11 15:22:37 art Exp $ */ /* $NetBSD: common.c,v 1.4 1995/09/23 22:34:20 pk Exp $ */ /* * Copyright (c) 1993,1995 Paul Kranenburg @@ -92,7 +92,7 @@ __load_rtld(dp) /* Map in ld.so */ crt.crt_ba = mmap(0, hdr.a_text+hdr.a_data+hdr.a_bss, PROT_READ|PROT_EXEC, - MAP_COPY, + MAP_PRIVATE, crt.crt_ldfd, N_TXTOFF(hdr)); if (crt.crt_ba == -1) { _FATAL("Cannot map ld.so\n"); @@ -112,7 +112,7 @@ __load_rtld(dp) /* Map in data segment of ld.so writable */ if (mmap(crt.crt_ba+N_DATADDR(hdr), hdr.a_data, PROT_READ|PROT_WRITE, - MAP_FIXED|MAP_COPY, + MAP_FIXED|MAP_PRIVATE, crt.crt_ldfd, N_DATOFF(hdr)) == -1) { _FATAL("Cannot map ld.so\n"); } @@ -120,7 +120,7 @@ __load_rtld(dp) /* Map bss segment of ld.so zero */ if (hdr.a_bss && mmap(crt.crt_ba+N_BSSADDR(hdr), hdr.a_bss, PROT_READ|PROT_WRITE, - MAP_FIXED|MAP_ANON|MAP_COPY, + MAP_FIXED|MAP_ANON|MAP_PRIVATE, crt.crt_dzfd, 0) == -1) { _FATAL("Cannot map ld.so\n"); } |