On 08/02/2015 09:33 AM, Jan Kratochvil wrote:
It was reworked from ordinary DT_NEEDED to this dlopen() approach
librpm.so is (was) the only incompatible shared library dependency between
various versions of RHELs/CentOSes and Fedoras. So with dlopen()ed librpm one
can take latest Fedora Rawhide rpm build and run the GDB binary in
RHEL/CentOS. This makes sense for non-x86* archs where a rebuild of new GDB
from sources would take too much time.
Ahh, thanks for the explanation.
Isn't GDB moving to C++ soon? This means that possibility will be lost
anyway. If that's the only reason, going with DT_NEEDED seems fine.
Florian Weimer / Red Hat Product Security