Page MenuHomeFreeBSD

elf_common.h: define EF_ARM_EABI_VERSION
ClosedPublic

Authored by imp on Jan 20 2023, 9:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 2:31 AM
Unknown Object (File)
Aug 18 2025, 3:47 AM
Unknown Object (File)
Aug 14 2025, 9:54 AM
Unknown Object (File)
Jul 29 2025, 3:01 AM
Unknown Object (File)
Jul 1 2025, 8:26 PM
Unknown Object (File)
Jun 28 2025, 7:58 AM
Unknown Object (File)
Jun 21 2025, 7:01 PM
Unknown Object (File)
May 29 2025, 1:07 PM
Subscribers
None

Details

Summary

The Linux distributions have had the EF_ARM_EABI_VERSION macro for a
while now. The kernel of arm* targets build depends on it being in the
host's elf.h environment. Add it here so it gets pulled in so there's
one fewer hack required to build a Linux kernel on a FreeBSD host.

Sponsored by: Netflix

Test Plan

(added people who have touched common_elf.h recently)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 20 2023, 9:58 PM
imp created this revision.
imp added reviewers: jrtc27, emaste, jhb, markj, kib, andrew, brooks.

FWIW, binutils' include/elf/arm.h defines this macro as well with the same semantics.

sys/sys/elf_common.h
335
This revision is now accepted and ready to land.Jan 20 2023, 10:00 PM

With jhb's fix

sys/sys/elf_common.h
328

Hm, Arm's spec calls this EF_ARM_ABIMASK, but both Linux and glibc call this EF_ARM_EABIMASK like us. Python's setuptools seems to be about the only thing that calls it by its "correct" name.

This revision was automatically updated to reflect the committed changes.