]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: do not process absent dynamic.
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 5 Sep 2020 22:41:31 +0000 (22:41 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 5 Sep 2020 22:41:31 +0000 (22:41 +0000)
commit2b49b95cfa930cec0092188bf1d78a82133a6489
tree07129f7a516ac5d1f7ed89231850598fc4831a56
parentea0a0939ef94cee0c5533956d130d12966b11593
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