]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle non-PLT GNU IFUNC relocations in rtld
authorluporl <luporl@FreeBSD.org>
Mon, 6 Jul 2020 11:57:59 +0000 (11:57 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 6 Jul 2020 11:57:59 +0000 (11:57 +0000)
commit3f99871ddb3fcb6b155e7a039f2d54fd143d154f
treed3796c61f366606d2121468c667f541d219fac41
parent6daf14915baf141f9f62099119058b5d1a6e0f10
Handle non-PLT GNU IFUNC relocations in rtld

In the last IFUNC related changes to rtld, the code that handled non-PLT
GNU IFUNC relocations ended up getting lost. This could leave some
relocations unhandled, causing crashes or misbehavior. This change restores
the handling of these relocations, but now together with the other IFUNC
relocations, allowing resolvers to reference external symbols.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D25550
libexec/rtld-elf/rtld.c