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, Nov 27, 6:12 AM
Unknown Object (File)
Nov 16 2025, 1:09 AM
Unknown Object (File)
Nov 16 2025, 12:40 AM
Unknown Object (File)
Nov 12 2025, 10:30 PM
Unknown Object (File)
Nov 12 2025, 6:04 PM
Unknown Object (File)
Nov 12 2025, 6:04 PM
Unknown Object (File)
Nov 12 2025, 6:04 PM
Unknown Object (File)
Nov 12 2025, 1:31 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49186
Build 46075: arc lint + arc unit

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.