mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
962fdc466a
discovered by Hidetoshi Shimokawa. Large programs need multiple GOTs. The lazy binding stub in the PLT can be reached from any of these GOTs, but the dynamic linker only has enough information to fix up the first GOT entry. Thus calls through the other GOTs went through the time-consuming lazy binding process on every call. This fix rewrites the PLT entries themselves to bypass the lazy binding. Tested by Hidetoshi Shimokawa and Steve Price. Reviewed by: Doug Rabson <dfr@freebsd.org> |
||
---|---|---|
.. | ||
elf_rtld.x | ||
Makefile.inc | ||
reloc.c | ||
rtld_machdep.h | ||
rtld_start.S |