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
F109620127: D38139.diff
Fri, Feb 7, 1:52 PM
Unknown Object (File)
Sun, Feb 2, 8:15 PM
Unknown Object (File)
Fri, Jan 31, 1:54 PM
Unknown Object (File)
Sun, Jan 19, 4:51 AM
Unknown Object (File)
Jan 5 2025, 2:07 PM
Unknown Object (File)
Dec 8 2024, 8:33 PM
Unknown Object (File)
Nov 16 2024, 7:35 PM
Unknown Object (File)
Nov 2 2024, 12:03 AM
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.