Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2010 08:46:29 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/libexec/rtld-elf rtld.c rtld.h
Message-ID:  <201011100846.oAA8kpHg004057@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2010-11-10 08:46:29 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    libexec/rtld-elf     rtld.c rtld.h 
  Log:
  SVN rev 215084 on 2010-11-10 08:46:29Z by kib
  
  MFC r214728:
  If dlopen() is called for the dso that has been already loaded as a
  dependency, then the dso never has its DAG initialized. Empty DAG
  makes ref_dag() call in dlopen() a nop, and the dso refcount is off
  by one.
  
  Initialize the DAG on the first dlopen() call, using a boolean flag
  to prevent double initialization.
  
  MFC r214776:
  Fix style.
  
  MFC r214777:
  Change init_dag() to not increment DAG refcount. Unconditionally call
  both init_dag() and ref_dag() in dlopen() for the case when the object
  was already loaded.
  
  Revision   Changes    Path
  1.139.2.9  +13 -2     src/libexec/rtld-elf/rtld.c
  1.43.2.3   +1 -0      src/libexec/rtld-elf/rtld.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011100846.oAA8kpHg004057>