Check IFUNC definition in unrelocated shared library [BZ #20019]
commit0e6d3adc60d8073397af6a320e594d98d7fbedde
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Oct 2016 16:11:55 +0000 (28 09:11 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Oct 2016 16:12:15 +0000 (28 09:12 -0700)
tree2578786c88497b0e932da9f4d03abefa1a73e20f
parent6b1df8b27f7c48d3933b152c0edc9493b199df84
Check IFUNC definition in unrelocated shared library [BZ #20019]

Calling an IFUNC function defined in unrelocated shared library may
lead to segfault.  This patch issues an error message to request
relinking the shared library if it references IFUNC function defined
in the unrelocated shared library.

[BZ #20019]
* sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
definition in unrelocated shared library.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
ChangeLog
sysdeps/i386/dl-machine.h
sysdeps/x86_64/dl-machine.h