]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214] fw/bug24214
authorFlorian Weimer <fweimer@redhat.com>
Fri, 29 Nov 2019 15:37:58 +0000 (16:37 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 29 Nov 2019 15:37:58 +0000 (16:37 +0100)
commit6029860f6fb465ac35c68c71e3899b9b872b6b26
treeea9df4b6c0c1d30b02b9f08077498b723466bac6
parenta331150af65477fc3fa72ab341eed5e0b2daf7f3
elf: Do not run IFUNC resolvers for LD_DEBUG=unused [BZ #24214]

This commit adds missing skip_ifunc checks to aarch64, arm, i386,
sparc, and x86_64.  A new test case ensures that IRELATIVE IFUNC
resolvers do not run in various diagnostic modes of the dynamic
loader.

Tested on x86_64-linux-gnu, i686-linux-gnu, aarch64-linux-gnu,
s390-linux-gnu, s390x-linux-gnu, powerpc64le-linux-gnu.  Built with
build-many-glibcs.py.
elf/Makefile
elf/tst-ifunc-fault-bindnow.c [new file with mode: 0644]
elf/tst-ifunc-fault-lazy.c [new file with mode: 0644]
sysdeps/aarch64/dl-machine.h
sysdeps/arm/dl-machine.h
sysdeps/i386/dl-machine.h
sysdeps/sparc/sparc32/dl-machine.h
sysdeps/sparc/sparc64/dl-machine.h
sysdeps/x86_64/dl-machine.h