]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Make new auxv format default
authorluporl <luporl@FreeBSD.org>
Mon, 24 Aug 2020 13:40:35 +0000 (13:40 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 24 Aug 2020 13:40:35 +0000 (13:40 +0000)
commitbc4b66e3cdbe6fc81aaa5d588bbe889f4f675e26
treef3db0181f7387c59fe5d8ad16018aa19e57da811
parent1c5d114956efc7f6c92d45c7609ff46881462056
[PowerPC] Make new auxv format default

Assume ELF images without OSREL use the new auxv format.

This is specially important for rtld, that is not tagged. Using
direct exec mode with new (ELFv2) binaries that expect the new auxv
format would result in crashes otherwise.

Unfortunately, this may break direct exec'ing old binaries,
but it seems better to correctly support new binaries by default,
considering the transition to ELFv2 happened quite some time
ago. If needed, a sysctl may be added to allow old auxv format to
be used when OSREL is not found.

Reviewed by: bdragon
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D25651
sys/powerpc/powerpc/elf_common.c