Page MenuHomeFreeBSD

Use the in-tree sys/elf_common.h to build libelftc.
ClosedPublic

Authored by bdrewery on Jun 5 2016, 8:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 3:50 PM
Unknown Object (File)
Wed, Nov 27, 3:52 AM
Unknown Object (File)
Wed, Nov 27, 3:52 AM
Unknown Object (File)
Wed, Nov 27, 3:52 AM
Unknown Object (File)
Wed, Nov 27, 3:34 AM
Unknown Object (File)
Nov 6 2024, 12:40 PM
Unknown Object (File)
Oct 6 2024, 8:57 PM
Unknown Object (File)
Oct 3 2024, 8:30 PM
Subscribers

Details

Summary

This fixes build failures on older releases that lack various
definitions such as EM_AARCH64 (which was unfixed before this).

Revert all of the recent compatibility changes that worked around this
problem.

This uses the same method of using the in-tree header as lib/libelf,
lib/libdwarf and usr.bin/readelf.

Sponsored by: EMC / Isilon Storage Division

Test Plan

Built from 8.4.

Note that the EM_AARCH64 failure was reported by Allan Jude for building
from 9.3.

/usr/src/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c:95: error: 'EM_AARCH64' undeclared (first use in this function)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bdrewery retitled this revision from to Use the in-tree sys/elf_common.h to build libelftc..
bdrewery updated this object.
bdrewery edited the test plan for this revision. (Show Details)
bdrewery added a reviewer: emaste.
bdrewery added a subscriber: allanjude.
emaste edited edge metadata.

OK.

I'd to find a clean way (that's acceptable upstream too) to use the ELF Tool Chain definitions common/elfdefinitions.h instead of sys/elf_common.h. But using the same approach as in libelf/libdwarf is fine right now.

This revision is now accepted and ready to land.Jun 5 2016, 8:58 PM

I think the more proper solution is to just install this file with libegacy. For now I will go with this pattern since it is used in 3 other places.

This revision was automatically updated to reflect the committed changes.