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)
Sun, Jan 5, 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
Unknown Object (File)
Sep 21 2024, 1:20 PM
Unknown Object (File)
Sep 20 2024, 7:53 AM
Unknown Object (File)
Sep 18 2024, 6:36 PM
Unknown Object (File)
Sep 18 2024, 8:26 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 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.