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)
Mon, May 6, 8:10 PM
Unknown Object (File)
Sat, May 4, 1:56 PM
Unknown Object (File)
Mar 18 2024, 4:31 PM
Unknown Object (File)
Nov 14 2023, 3:03 PM
Unknown Object (File)
Nov 10 2023, 6:36 PM
Unknown Object (File)
Nov 6 2023, 4:49 PM
Unknown Object (File)
Nov 6 2023, 3:58 AM
Unknown Object (File)
Oct 13 2023, 2:04 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.