]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: do not process absent dynamic.
authorkib <kib@FreeBSD.org>
Sat, 5 Sep 2020 22:41:31 +0000 (22:41 +0000)
committerkib <kib@FreeBSD.org>
Sat, 5 Sep 2020 22:41:31 +0000 (22:41 +0000)
commit7e19fba03fbfc031e5592ef36cbeb224556d72fe
tree07129f7a516ac5d1f7ed89231850598fc4831a56
parentd0d962cbd5bf0d4afa00c44be851114a0c24bddb
rtld: do not process absent dynamic.

If object has no dynamic phdr, do not try to dereference NULL.  This
means that we cannot process any relocation, and that there cannot be
symbols defined, but it is up to static linker to produce meaningful
objects.

PR: 249121
Reported by: wsh@riski.sh
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
libexec/rtld-elf/rtld.c