]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add ElfW() macro for compatibility with Linux
authorDimitry Andric <dim@FreeBSD.org>
Thu, 5 Aug 2021 18:57:22 +0000 (20:57 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 14 Aug 2021 13:00:28 +0000 (15:00 +0200)
commitb58a13b94c99a5c505bc24ca705111585d1b6759
tree5470278816c62551ba719d1719e7a28613bdada0
parent53b0a143509cfaa88a3fe621063966158367f498
Add ElfW() macro for compatibility with Linux

Some Linux software using ELF headers assumes the existence of an
ElfW(type) macro, which concatenates 'Elf', the default ELF word size,
and the given type. This is identical to our __ElfN(x) macro in
<sys/elf_generic.h>. Add the macro for compatibility, with a comment
that we prefer the __ElfN() macro for FreeBSD.

Reviewed by: emaste, kib
Differential Revision: https://reviews.freebsd.org/D31427
MFC after: 1 week

(cherry picked from commit 34e7e4b6a059eee5e4e3e34de5b9d5f0d6e589f9)
sys/sys/elf_generic.h