]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PPC64] Fix rtld direct exec mode
authorluporl <luporl@FreeBSD.org>
Mon, 5 Aug 2019 13:22:02 +0000 (13:22 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 5 Aug 2019 13:22:02 +0000 (13:22 +0000)
commit8becda8caa114095c85046e7fe2f56d879e9d2e4
treeae29918b9d4810ecea09a6d16d1ea3317d056f95
parent971524ae6214be8a7c7e7532264e5ff436ab8c06
[PPC64] Fix rtld direct exec mode

Instead of restoring the saved values of argc, argv and envp,
these must be loaded from the stack that _rtld() modifies.

This fixes rtld direct exec mode.
E.g.: /libexec/ld-elf.so.1 /bin/ls

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D21131
libexec/rtld-elf/powerpc64/rtld_start.S