HomeFreeBSD

Add ElfW() macro for compatibility with Linux

Description

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)

Details

Provenance
dimAuthored on Aug 5 2021, 6:57 PM
Reviewer
emaste
Differential Revision
D31427: Add ElfW() macro for compatibility with Linux.
Parents
rG53b0a143509c: mkimg(1): Correct a typo in the usage output
Branches
Unknown
Tags
Unknown