git: rtld: allocate obj->vertab only once

John Marino marino at
Fri Mar 30 12:02:06 PDT 2012

commit 13977d5d2754f0487f3719b851bdfddc6acdfed5
Author: John Marino <draco at>
Date:   Fri Mar 30 20:07:35 2012 +0200

    rtld: allocate obj->vertab only once
    Verbatim from FreeBSD SVN 233546 (27 MAR 2012)
    Prevent rtld_verify_object_versions() from being called several times for
    the same object. This can happen when object is a dependency of the
    dlopen()ed dso. When called several times, we waste time due to unneeded
    processing, and memory, because obj->vertab is allocated anew on each

Summary of changes:
 libexec/rtld-elf/rtld.c |    4 ++++
 libexec/rtld-elf/rtld.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list