summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/i386
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-03-14 21:10:13 +0000
committerkan <kan@FreeBSD.org>2003-03-14 21:10:13 +0000
commit64afb9f4caa5b57572c3893eab16381b6866c3fa (patch)
treec71eba3aea1d49dbd2c5db03a055c658f04cb06a /libexec/rtld-elf/i386
parent1912035aa66fa9ac27c3c60eb8efc7b7e86a68a0 (diff)
downloadFreeBSD-src-64afb9f4caa5b57572c3893eab16381b6866c3fa.zip
FreeBSD-src-64afb9f4caa5b57572c3893eab16381b6866c3fa.tar.gz
No need to zero fill memory, mmapped anonymously. Kernel will
return pre-zeroed pages itself. Noticed by: jake
Diffstat (limited to 'libexec/rtld-elf/i386')
-rw-r--r--libexec/rtld-elf/i386/reloc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libexec/rtld-elf/i386/reloc.c b/libexec/rtld-elf/i386/reloc.c
index f8457b3..6778574 100644
--- a/libexec/rtld-elf/i386/reloc.c
+++ b/libexec/rtld-elf/i386/reloc.c
@@ -125,8 +125,6 @@ reloc_non_plt(Obj_Entry *obj, Obj_Entry *obj_rtld)
cache = mmap(NULL, bytes, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
if (cache == MAP_FAILED)
cache = NULL;
- if (cache != NULL)
- memset(cache, 0, bytes);
rellim = (const Elf_Rel *) ((caddr_t) obj->rel + obj->relsize);
for (rel = obj->rel; rel < rellim; rel++) {
OpenPOWER on IntegriCloud