rtld: allocate obj->vertab only once
authorJohn Marino <draco@marino.st>
Fri, 30 Mar 2012 18:07:35 +0000 (20:07 +0200)
committerJohn Marino <draco@marino.st>
Fri, 30 Mar 2012 19:00:58 +0000 (21:00 +0200)
commit13977d5d2754f0487f3719b851bdfddc6acdfed5
tree9902057a9d978ceec8a17ada616d387aa2a6ac79
parent384367d5cc2b4958f659c717b1d3ad7eb755ee2a
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
iteration.
libexec/rtld-elf/rtld.c
libexec/rtld-elf/rtld.h