]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] [DTrace] Add ELFv2 support in libdtrace
authorbdragon <bdragon@FreeBSD.org>
Wed, 5 Feb 2020 19:39:48 +0000 (19:39 +0000)
committerbdragon <bdragon@FreeBSD.org>
Wed, 5 Feb 2020 19:39:48 +0000 (19:39 +0000)
commita6d4bb724a2ff129d34961cb6ad295bf457ac6aa
tree10fc199ee78db9f5ec0ec962d2016d58576ba2b3
parent4b8e29df89b827f1f10101282a62f8804a99f345
[PowerPC] [DTrace] Add ELFv2 support in libdtrace

PPC64 ELFv2 acts like a "normal" platform in that it no longer needs
function descriptors. So, ensure we are only enabling them on ELFv1.

Additionally, ELFv2 requires that the ELF header have a nonzero e_flags,
so ensure that the synthesized ELF header in dt_link.c is setting it.

Reviewed by: jhibbits, markj
Approved by: gnn
Differential Revision: https://reviews.freebsd.org/D22403
cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c