Page MenuHomeFreeBSD

Add ElfW() macro for compatibility with Linux.
ClosedPublic

Authored by dim on Aug 5 2021, 7:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 12:55 AM
Unknown Object (File)
Wed, Nov 6, 7:27 AM
Unknown Object (File)
Tue, Nov 5, 12:26 AM
Unknown Object (File)
Tue, Oct 22, 11:01 AM
Unknown Object (File)
Sep 28 2024, 9:25 AM
Unknown Object (File)
Sep 18 2024, 11:04 PM
Unknown Object (File)
Sep 18 2024, 4:43 PM
Unknown Object (File)
Sep 16 2024, 11:11 AM
Subscribers

Details

Summary

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.

Test Plan

maybe this needs an exp-run?

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40872
Build 37761: arc lint + arc unit

Event Timeline

dim requested review of this revision.Aug 5 2021, 7:00 PM

I think an exp-run is worthwhile

kib added inline comments.
sys/sys/elf_generic.h
60

I think some recommendation would be useful, like

.. with Linux, prefer __ElfN() in FreeBSD code */
This revision is now accepted and ready to land.Aug 5 2021, 10:22 PM
This revision was automatically updated to reflect the committed changes.