git: rtld - Fix ifunc relocations

Matthew Dillon dillon at
Tue Dec 5 00:15:24 PST 2017

commit adb072584ea04a3358cc137eb6714046f3d31266
Author: Matthew Dillon <dillon at>
Date:   Tue Dec 5 00:14:20 2017 -0800

    rtld - Fix ifunc relocations
    * ifunc relocations had a bug that caused an immediate seg-fault.
      Apparently this type of relocation is not used very much, we've
      never encountered it before.  But the qemu port uses it.
    * Fix the bug.  Basically missing lockstate and the top level in
      rtld was expected to hold the bind lock.

Summary of changes:
 libexec/rtld-elf/rtld.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list